PDA

View Full Version : [ubuntu] Yet another sshd issue...



amishphysicist
June 7th, 2008, 02:09 AM
Hi All,

I just installed Ubuntu 8.04 Hardy Heron and am unable to ssh to my machine from other on my network.

I did the usual apt-get/aptitude/install commands that people recommend:


sudo aptitude install openssh-server
sudo apt-get install openssh-server
sudo apt-get install ssh
sudo /etc/init.d/ssh restart


I still can't ssh on over from a different box in the same network. I haven't done any other fancy firewall config or anything like that. I can ssh out, but not back.

What else do I have to do to make it so I can ssh into my machine?

thanks,

-nate

Pumalite
June 7th, 2008, 02:39 AM
sudo aptitude install openssh-client

amishphysicist
June 9th, 2008, 10:01 PM
Hmm. it doesn't look like that command updated anything:



root@nlieby-lin:/lsurf# sudo aptitude install openssh-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

thanks,

-nate

Pumalite
June 9th, 2008, 10:29 PM
Maybe this might help:
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-openssh-server-config.html

Vivaldi Gloria
June 10th, 2008, 12:11 AM
You have two computers, say A and B. I assume that A runs sshd and from B you try to ssh A.

Questions:

1) Are these in a LAN? Because the default option of sshd allows only LAN connections.

2) Is sshd really working on A? How about first giving the command


/usr/sbin/sshd

in A and then trying again.

3) What happens when you do


ssh localhost

in A?

amishphysicist
June 10th, 2008, 09:25 PM
Both of these computers are on a LAN connection. All of this worked until I killed off my old ubuntu.

Here are the outputs from the commands you gave:

nlieby@nlieby-lin:/lsurf/var$ /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key


nlieby@nlieby-lin:/lsurf/var$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 3b:9b:c7:f4:ee:18:67:3f:4c:ad:86:48:5f:7a:14:81.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.

The weird thing is that the localhost login doesn't accept my usual password for my username, so that makes me wonder.

thanks,

-nate

Vivaldi Gloria
June 10th, 2008, 09:50 PM
The weird thing is that the localhost login doesn't accept my usual password for my username, so that makes me wonder.


Hmmm. That is weird. So it turns out that you cannot even ssh from the same computer. I suggest that you make a new thread to Security Discussions subforum

http://ubuntuforums.org/forumdisplay.php?f=338

and post a copy of your /etc/ssh/sshd_config there and write that when you ssh localhost your pswd is not accepted. There are more experienced guys over there. Actually, may be it is better to ask an admin to move this thread over there.

amishphysicist
June 11th, 2008, 12:07 AM
New thread is here: http://ubuntuforums.org/showthread.php?t=825112

thanks,

-nate