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 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 03:02 PM
awk questions bobo UNIX for Dummies Questions & Answers 1 06-28-2006 01: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 10: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 Bulgarian Greek 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-23-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 09-01-2008
jmkraja jmkraja is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
Hi Tekline Can you pls help me in making this work? I'm facing the same problem as the server prompts for the password everytime.

Steps in Detail:
--------------
Source Machine: SRC_Machine
Remote Mahcine: RMT_Machine

I logged on to SRC_Machine
ssh -V
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003

and generated a Key as shown below..
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/.ssh/id_rsa): /home/.ssh/id_rsa_test
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/.ssh/id_rsa_test.
Your public key has been saved in /home/.ssh/id_rsa_test.pub.
The key fingerprint is:
b6:74:7f:84:6f:21:68:fb:86:5c:2f:03:79:c9:ff:61

Modified the permision of the private key file to
chmod 600 id_rsa_test
-rwx------ 1 951 Sep 2 13:09 id_rsa_test

Then i did to appen the public key to Authorized Keys
ssh RMT_Machine "umask 077; cat >> .ssh/authorized_keys" < /home/.ssh/id_rsa_test.pub

chmod 700 id_rsa_test

Now while i do ssh username@RMT_Machine
it prompts me for the password.

Let me know if i'm missing any steps.
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 04:14 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