SSH2 help !!!!

Hi,

I need to implement sftp between server 1 and server2.

I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2.

I have also finished updating the identification file at /home/user1/.ssh2

I have an account created user2 which I should use when connecting to server2. However, when I am using the following command to connect to server2, I get the messages below:

>ssh -v user2@server2
debug: Connecting to user2@server2, port 22... (SOCKS not used)
warning: Connecting to user2@server2 failed: No address associated to the name

Any clues what I should do from here, please.

Thanks

Check your /etc/hosts file or DNS - it is complaining that it can't find an IP address associated to that name. Or you may need to put in the domain name (user2@server2.mydomain.com)

Connecting to user2@server2 failed: No address associated to the name

Thanks ,
Ya I found out, the problem was there was no corresponding entry in the /etc/hosts file.

Thanks