Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

SSH without being prompted for a password on AIXHelpful Member! 

strikelit (MIS) (OP)
24 Apr 06 16:35
I am trying to setup ssh . I would like to ssh from one aix box to another without being prompted for a password.  What can I do ?  I copied the id_dsa_pub key from the main box to the authorized_keys file on the host I want to connect to and it doesnt work.
Gloups (IS/IT--Management)
25 Apr 06 3:56
Have a look to your sshd_config file and look to those lines:

#RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys

Also have a look to your authorized_keys permissions group ant others shouldn't have write permissions.
Helpful Member!  Germo (TechnicalUser)
25 Apr 06 5:53
strikelit,

I posted a reply to a simlier question a while back, below is my reply, hope it helps

###########################################################
It just happens that I have just finished a documentation for my company on ssh password. It may not be spot on what you need but it could be a good starting place.

#########################################################
There are two servers, Server1 and Server2. (this works between two AIX servers, two Linux server or between Linux and AIX servers)

Server1 & 2 want to be able to ssh from one server to another without asking for passwords.


On Server1 when logged in as the user you wish to use (this example we will use “user1” id)

Run the following command

#ssh-keygen –t rsa

You will get the following

Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):

Press enter to take the default settings

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Press enter to blank out the password request for the “passphrase”

Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
blah:1b:42:ba:blah:ec:41:blah:01:blah:73:83:99998:8a:fb:99 user1@fileserver

So now you have created your rsa keys.
Now what you need to do is create a autorized_keys2 file on Server2, do this by doing the following, (make sure you are in the “/” directory before running)

scp /home/user1/.ssh/id_rsa.pub 1??.??.??.??:/home/sysadmtg/.ssh/authorized_keys2

You will get asked to enter in the password for the id you are using for Server2

user1@1??.??.??.??'s password:

After entering the correct password you should able to ssh or sftp to Server2 from Server1 without being asked for a password.

To be able to go from Server2 to Server1 in the same way and assuming you already have the two rsa file (if not just run the “ssh-keygen” command from the home directory) run the following command

scp /home/user1/.ssh/id_rsa.pub 1??.??.?.??.??:/home/user1/.ssh/authorized_keys2

You should be able to go between Server1 and Server2 without asking for passwords.
##########################################

Thanks.
sbrews (TechnicalUser)
1 May 06 0:25
There is also an excellent SSH "How to" here:

http://www.unixpeople.com/HOWTO/configuring.ssh.html

It covers setting up SSH to work with both OpenSSH and Commercial SSH.

scott
kHz (MIS)
1 May 06 9:49
And a search on google didn't supply any answers?  Gee, I find multiple documents.  Guess some people are just too lazy to look for themselves.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close