The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 02:02 PM
awk questions bobo UNIX for Dummies Questions & Answers 1 06-28-2006 12:33 AM
new bie questions gauri UNIX for Dummies Questions & Answers 2 02-10-2006 01:02 AM
ssh-keygen trust problem PaulC SuSE 4 04-21-2005 09:17 AM
C questions Esaia High Level Programming 2 01-17-2003 09:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2007
tekline tekline is offline
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
  #2 (permalink)  
Old 08-22-2007
tekline tekline is offline
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.
  #3 (permalink)  
Old 08-22-2007
tekline tekline is offline
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.
  #4 (permalink)  
Old 08-22-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
are you using openssh or ssh2?
  #5 (permalink)  
Old 08-22-2007
tekline tekline is offline
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?
  #6 (permalink)  
Old 08-23-2007
joerg's Avatar
joerg joerg is offline
Registered User
  
 

Join Date: Jan 2002
Location: Germany
Posts: 167
ssh -V
shows the Version
Best regards joerg
  #7 (permalink)  
Old 08-23-2007
tekline tekline is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0