# ssh problem

**URL:** <https://community.unix.com/t/ssh-problem/175233>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [September 4, 2007, 12:11pm UTC](https://community.unix.com/t/ssh-problem/175233 "2007-09-04T12:11:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zak](https://community.unix.com/letter_avatar/zak/32/6_22734026db12803ebb3e059622ac3534.png) [@Zak](https://community.unix.com/u/Zak)\
**Post date:** [September 4, 2007, 12:11pm UTC](https://community.unix.com/t/ssh-problem/175233/1 "2007-09-04T12:11:23Z")

</div>

Dear Gurus,

I have two servers adms and ads1, both running Solaris 9. I want to ssh from adms to ads1.

So I created a ssh2 key using the following command:-

ssh-keygen -t rsa -b 2048 -C "dartkey"

I then added the contents of dartkey.pub to the authorised\_key file on ads1.

I then attempted to connect to the server...

\> ssh -v -2 -l dart -i .ssh/dartkey ads1  
SSH Version Sun\_SSH\_1.0.1, protocol versions 1.5/2.0.  
debug1: Reading configuration data /etc/ssh/ssh\_config  
debug1: Rhosts Authentication disabled, originating port will not be trusted.  
debug1: ssh\_connect: getuid 101 geteuid 101 anon 1  
debug1: Connecting to [ads1-winn.server.virgin.net](http://ads1-winn.server.virgin.net) [172.17.3.30] port 22.  
debug1: Connection established.  
debug1: Bad RSA1 key file .ssh/dartkey.  
debug1: identity file .ssh/dartkey type 3  
ssh\_exchange\_identification: Connection closed by remote host  
debug1: Calling cleanup 0x3ee0c(0x0)  
\>

On adms :-  
\> ssh -V  
SSH Version Sun\_SSH\_1.0.1, protocol versions 1.5/2.0.  
\>

On ads1 :-  
\>ssh -V  
Sun\_SSH\_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090700f

I've updated the hosts.allow on ads1 with adms's details.

The sshd\_config and ssh\_config on both servers:- Protocol 2

I chmod the key to 600...

Also I can do

\> telnet ads1 22  
Trying 172.17.3.30...  
Connected to ads1-winn.  
Escape character is '^]'.

any help would greatly appericated. 😕
