The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP questions XZOR UNIX for Dummies Questions & Answers 1 07-21-2006 11:02 AM
awk questions bobo UNIX for Dummies Questions & Answers 1 06-27-2006 09:33 PM
new bie questions gauri UNIX for Dummies Questions & Answers 2 02-09-2006 09:02 PM
ssh-keygen trust problem PaulC Linux 4 04-21-2005 06:17 AM
C questions Esaia High Level Programming 2 01-17-2003 05:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2007
Registered User
 

Join Date: Jun 2007
Posts: 15
ssh-keygen questions (not working)

I have created the keys and placed the public key in the remote user directory (not the server root).
(remote machine: dwebapp1)
ex: /home/webarch/user_name/.ssh/authorized_keys2

cannot ssh into the remote machine using the following command:
ssh ${dwebapp1}

the manned description gives the following pattern:
[options] host [command]
(one of the options is this
Options:
-l user Log in using this user name.

But this is not working form me.
I just want to connect from one machine to the other without keying in the user name and password. Please help. The tutorial seems straight forward but I am having trouble. I am using the following tutorial link:

No Passwd Required - Mt Xia: Technical Consulting Group

Thank you for any help you can provide
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-22-2007
Registered User
 

Join Date: Jun 2007
Posts: 15
ssh-keygen questions (not working)

Here is the error I am recieving when typing ssh ${dwebapp1} at the command line of the originating machine:

ssh: $\033[3~{dwebapp1}: no address associated with hostname.
Reply With Quote
  #3 (permalink)  
Old 08-22-2007
Registered User
 

Join Date: Jun 2007
Posts: 15
ssh-keygen questions (not working)

Also,

I was not able to use 'scp' command. Instead I used a different ftp client to place the key file on the remote machine in the user's .ssh directory.
Reply With Quote
  #4 (permalink)  
Old 08-22-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
are you using openssh or ssh2?
Reply With Quote
  #5 (permalink)  
Old 08-22-2007
Registered User
 

Join Date: Jun 2007
Posts: 15
ssh-keygen questions (not working)

I managed to ssh between servers. I created and installed public keys for both machines so that I can ssh from both servers to each other (from server A to B and from server B to A).

I did discover that if using the ssh command at the command line I don't need to use the ${servername} brackets, etc. simply typing 'ssh servername' is the correct format.

I am not sure why the difference from the tutorial I used but it works.

Also, I managed to use 'scp' command but I could only place the key in the root .ssh directory of the remote server.

I am not sure which version of ssh I am using since I am not the administrator of this box. How do I find out?
Reply With Quote
  #6 (permalink)  
Old 08-23-2007
joerg's Avatar
Registered User
 

Join Date: Jan 2002
Location: Germany
Posts: 167
ssh -V
shows the Version
Best regards joerg
Reply With Quote
  #7 (permalink)  
Old 08-23-2007
Registered User
 

Join Date: Jun 2007
Posts: 15
ssh-keygen questions (not working)

Thanks Joerg. The version is listed below.

Server 1 (connecting from)
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090605f

Server 2 (connecting to - dwebapp1)
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0