1753828 Members
8737 Online
108806 Solutions
New Discussion юеВ

ssh not working

 
SOLVED
Go to solution
Andrew medhurst1
Frequent Advisor

ssh not working

guy i have installed a new golden ignite image which i have used to install loads of servers without a problem but on this one SSH is refusing connection.
the error i am getting is below
ssh -v -v -v root@myserver
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug3: Seeding PRNG from /opt/ssh/libexec/ssh-rand-helper
debug2: ssh_connect: needpriv 0
debug1: Connecting to myserver port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug3: Not a RSA1 key file /.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /.ssh/id_rsa type 1
debug1: identity file /.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

any ideas ??
andrew
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: ssh not working

Did you compare this result with what you get
on all those other "loads of servers"? With
all the "key_read" complaints, I'd look at
the key files.
Court Campbell
Honored Contributor

Re: ssh not working

I would probably start here:

debug3: Not a RSA1 key file /.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'

Try either recreating or copying another id_rsa file.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Rasheed Tamton
Honored Contributor

Re: ssh not working

Did you re-generate the keys and try again.

ssh-keygen -f /.ssh/id_rsa
or
ssh-keygen -i -f /.ssh/id_rsa
Steven E. Protter
Exalted Contributor
Solution

Re: ssh not working

Shalom,

It does appear that the key files are missing or the wrong permissions.

Can you log on to the target server via the console and take a look at /var/adm/syslog/syslog.log and the permissions of the .ssh key files?

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
Andrew medhurst1
Frequent Advisor

Re: ssh not working

thank you everybody
i have resolve, i was being a complete idiot and had not checked syslog as steven suggested.
discovered by a bit of a obscure message that inetd.conf was directing ssh to a directory that does not exist and once this was resolved and the known hosts updated it now all works.
thanks for the help and why this one server did this when i have probably biult 30-40 servers with this image i don't know but that another challenge.
regards
andrew