Operating System - HP-UX
1753316 Members
5428 Online
108792 Solutions
New Discussion юеВ

Re: ssh connection refused

 
Matthew Mills_2
Advisor

ssh connection refused

I had to ignite an L2000 server with an ignite tape from another server. everything went well. I changed the name, IP, etc... But now I get connection refused when I try to ssh session into the server. I can do a normal telnet sessions just fine...

Please help!
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: ssh connection refused

Shalom,

the .ssh files for root are incorrect after the restore.

remove the files

ssh-keygen -t dsa

enter through the questions.

Restore any authorized_keys file you use centrally.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: ssh connection refused

if the original (source of ignite image) server and the newly ignited server are on different subnets, make sure there are no firewalls with different rule sets preventing you from ssh into the new one.

Otherwise, the connection refused message is not caused by the ssh keys or anything in the .ssh directory as SEP suggest. At the worst case, your authentication fails and you either get prompted for a password or see a message, warning you about a possible man-in-the-middle attack.

Also, make sure that your sshd has started after booting the new server.

ps -ef | grep sshd

if not running

/sbin/init.d/secsh start


Hope this helps
________________________________
UNIX because I majored in cryptology...
Matthew Mills_2
Advisor

Re: ssh connection refused

the command "ssh-keygen -t dsa" ran ok. but I still have the same issue. Any other ideas?
Matthew Mills_2
Advisor

Re: ssh connection refused

YES! you got it. SSHD did not start on bootup. Thanks!
Mel Burslan
Honored Contributor

Re: ssh connection refused

Assuming you are on another unix server while trying to ssh into the newly ignited L2000. If this is true, try

ssh -vvv newserver

and cut and paste the output here.
________________________________
UNIX because I majored in cryptology...