943,854 Members | Top Members by Rank

Ad:
  • Mac OS X Discussion Thread
  • Unsolved
  • Views: 4800
  • Mac OS X RSS
May 10th, 2009
0

Can't SSH into Ubuntu

Expand Post »
I'm having trouble using SSH to gain access to my Ubuntu 9 machine (extreme linux neophyte). I have the Ubuntu server and OpenSSH installed, as well as Samba on one machine, and I'm trying to access this machine, via SSH, from my Mac--which is running OS X 10.5.6.

I am trying to SSH into the Ubuntu machine, so I can SFTP files from the Samba server onto my Mac, (not sure if that's the most efficient way, but I think it'll work).

However, when I try and SSH into the Ubuntu machine, the SSH command just times out. I don't think it's a port issue, because from what I understand, Ubuntu doesn't install a firewall by default.

I feel like I'm missing a simple step, but I can't seem to figure it out.

Any help or suggestions would be greatly appreciated.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
b3ckm4n is offline Offline
3 posts
since May 2009
May 11th, 2009
0

Re: Can't SSH into Ubuntu

What type of message is ssh returning? I just installed 9.04 on one of my machines yesterday and loaded openssh. I was able to login from my Mac right away. My setup is a little different though, I'm using 9.04 desktop not server - so there may be some differences.
Reputation Points: 13
Solved Threads: 7
Light Poster
BlackJavaBean is offline Offline
38 posts
since Feb 2008
May 11th, 2009
0

Re: Can't SSH into Ubuntu

Thanks for your reply.

After typing:

Quote ...
ssh username@hostip
the terminal returns the error:

Quote ...
ssh: connect to host 192.168.1.106 port 22: Operation timed out
Not sure if the different versions matter, but I would assume the main difference between the desktop/server editions would be the packages installed.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
b3ckm4n is offline Offline
3 posts
since May 2009
May 11th, 2009
0

Re: Can't SSH into Ubuntu

From the Ubuntu server, run:
$ netstat -a
And see if you see something like *.ssh under IPv4 (usually near the top of the output) .. This will tell you whether your SSH server is up or not.

Second, when you try SSH again, use the -vv flags:
$ ssh -vv username@hostip

EDIT: The '-vv' flags may give you an indication of what is going awry.
Last edited by Stylish; May 11th, 2009 at 5:18 pm.
Reputation Points: 44
Solved Threads: 19
Junior Poster
Stylish is offline Offline
148 posts
since May 2007
May 11th, 2009
0

Re: Can't SSH into Ubuntu

Thanks for your reply.

Here's what I got when I ran netstat--I just pulled all of the lines that had ssh in them:

Quote ...
unix 2 [ ACC ] STREAM LISTENING 9887 /tmp/ssh-sdPcyK3687/agent.3687

unix 2 [ ACC ] STREAM LISTENING 10465 /tmp/keyring-SUd9DN/socket.ssh
And here's what I got while running ssh -vv:

Quote ...
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.xxx.xxx [192.168.xxx.xxx] port 22.
debug1: connect to address 192.168.xxx.xxx port 22: Operation timed out
ssh: connect to host 192.168.xxx.xxx port 22: Operation timed out
I tried restarting ssh through init.d, but when running netstat, it didn't add anything.

Any idea?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
b3ckm4n is offline Offline
3 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Mac OS X Forum Timeline: Help with RAID
Next Thread in Mac OS X Forum Timeline: iBook G3 will not boot from CD/DVD





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC