Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    Unhappy Connecting to server from Terminal in Lion
    Hello everyone, I was wondering what I need to type into terminal to connect to my server. I was only able to find one command and it doesn't seem to work. I have two Linux Ubuntu 11.10 (latestest version) servers and can connect to neither. Thanks in advance.

    Here is the command I have been using. ssh username@server name.***.***.***.***
    ^^IP address^^
    I MISS SNOW LEOPARD ;(

  2. #2
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    This all depends how you're trying to connect - what protocol are you connecting over? From the looks of it, you're trying to connect over SSH which is only going to work if the ssh daemon is started and configured on the Ubuntu box.

    Second, you don't need the server name and the IP - stick with just the IP:
    Code:
    ssh username@<IP>
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    Quote Originally Posted by vansmith View Post
    This all depends how you're trying to connect - what protocol are you connecting over? From the looks of it, you're trying to connect over SSH which is only going to work if the ssh daemon is started and configured on the Ubuntu box.

    Second, you don't need the server name and the IP - stick with just the IP:
    Code:
    ssh username@<IP>
    Well, If I'm not mistaken my network is dhcp, but I tried that in place of ssh and got a command not found so i switched back to the ssh thing at the beginning. I would I start/congifure the ssh on the ubuntu box? or is that not what I need to do with the dhcp network setting?
    I MISS SNOW LEOPARD ;(

  4. #4
    Connecting to server from Terminal in Lion
    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    Specs:
    1.8 GHz i7 MBA 11" OSX 10.8.2
    Where did you get the command not found?

    How did you install Ubuntu? Usually when you do an install from a disc it installs the desktop version of Ubuntu - which doesn't provide most of the server stuff like ssh.
    Enable Secure Shell (SSH) in Ubuntu 11.04 Natty Narwhal | Liberian Geek

    Note that if you expose ssh to the internet (i.e. open it in your firewall - you will be brute-forced attacked but scripts constantly) If you are just trying to access your computer internally behind your firewall - it should be fine to use passwords.

    ssh username@ip should work fine. The first one you tried I wouldn't expect to work.

  5. #5
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    Quote Originally Posted by IvanLasston View Post
    Where did you get the command not found?

    How did you install Ubuntu? Usually when you do an install from a disc it installs the desktop version of Ubuntu - which doesn't provide most of the server stuff like ssh.
    Enable Secure Shell (SSH) in Ubuntu 11.04 Natty Narwhal | Liberian Geek

    Note that if you expose ssh to the internet (i.e. open it in your firewall - you will be brute-forced attacked but scripts constantly) If you are just trying to access your computer internally behind your firewall - it should be fine to use passwords.

    ssh username@ip should work fine. The first one you tried I wouldn't expect to work.
    I installed it via USB, but it is the server version that doens't include the desktop environment. Essentially it's just the command line though a desktop mode can be enabled I believe . I tried ssh username@ip but it just adnvances the cursor to the next line. I'll try logging off the server and then see if that helps.
    I MISS SNOW LEOPARD ;(

  6. #6
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by 19birel View Post
    Well, If I'm not mistaken my network is dhcp, but I tried that in place of ssh and got a command not found so i switched back to the ssh thing at the beginning. I would I start/congifure the ssh on the ubuntu box? or is that not what I need to do with the dhcp network setting?
    DHCP is not a connection protocol but a method of allocating IPs to clients. It has nothing to do with shares beyond giving machines on the network an IP address.

    Ubuntu Server doesn't install SSH by default unless you explicitly select it during install (actually, I'm not even sure if it's an option - it's been a while since I installed it on my server). If you don't have it installed and configured, take a look at the Ubuntu server docs here. That's for version 11.10 - replace the version number in the URL with your version if you're using an older one.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  7. #7
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    I'm now running into the permission denied issue when transfering files from the mac to server. How can I fix this?
    I MISS SNOW LEOPARD ;(

  8. #8
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Have you successfully installed and configured SSH? Can you SSH in? If so, how are you trying to transfer the files (scp, sftp, smb, etc.)?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  9. #9
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    Quote Originally Posted by vansmith View Post
    Have you successfully installed and configured SSH? Can you SSH in? If so, how are you trying to transfer the files (scp, sftp, smb, etc.)?
    I got the SSH installed and connected to the mac via the mac's terminal (logged into the server) and executed the get filename command once in the files folder.
    I MISS SNOW LEOPARD ;(

  10. #10
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Can you be a little more specific? What command are you executing and on what machine are you executing it on?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  11. #11
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    Quote Originally Posted by vansmith View Post
    Can you be a little more specific? What command are you executing and on what machine are you executing it on?
    Logged into the server I executed the get filename command. Here is an example

    get document1.docx

    I execute this when I am on the server remotely logged into the Mac & in one of its directories e.g. Documents.
    I MISS SNOW LEOPARD ;(

  12. #12
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Are you using FTP? I only ask because get is an FTP command. This is only going to work if you have FTP setup.

    If you want simple file transfer, look into scp. Take a look at this.

    Here's a simple example. Let's say I want to copy "test_document" from my Mac to my Linux server. I can execute the following to do this:
    Code:
    scp test_document vansmith@192.168.2.6:/home/vansmith
    That will copy test_document over to /home/vansmith on my Linux server over SSH.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  13. #13
    Connecting to server from Terminal in Lion
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    yea, scp isn't as 'user friendly' as ftp. Although you can always pipe a tarball through ssh
    mike
    This machine kills fascists
    Got # ? phear the command line!

  14. #14
    Connecting to server from Terminal in Lion
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    True but it doesn't require any setup beyond an SSH account (which is already setup). The syntax is manageable as well if you think of it like cp.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  15. #15
    Connecting to server from Terminal in Lion
    19birel's Avatar
    Member Since
    Nov 02, 2011
    Location
    Pennsylvania
    Posts
    222
    Specs:
    Late 2011 13" MBP 2.4 GHz i5 16gb RAM, Early 2008 Mac Pro 2.8Ghz 8-Core Xeon 6gb RAM OSX 10.9.x
    I am using FTP which I setup. I'll try the SCP solution you mentioned as Vansmith.
    I MISS SNOW LEOPARD ;(

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mac Mini server - Mountain Lion question (and Lion server question)
    By auburn05 in forum OS X - Operating System
    Replies: 13
    Last Post: 07-04-2012, 03:10 PM
  2. Connecting to a Lion server
    By Janrabbit in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 06-21-2012, 08:01 AM
  3. Permissions different when connecting to Windows server from Lion?
    By alstos in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 02-28-2012, 11:58 AM
  4. Lion vs Lion server on new mac mini server
    By phillipm in forum OS X - Operating System
    Replies: 1
    Last Post: 02-27-2012, 10:46 PM
  5. Lion and connecting to server 2003
    By IDG20 in forum OS X - Operating System
    Replies: 2
    Last Post: 10-12-2011, 09:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •