Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Trusted SSH on Solaris

From: Jeff Koenig <Jeff.Koenig(at)experian.com>
Date: Mon Dec 09 2002 - 16:02:03 EST


Configuring SSH keys so passwords are not required:



#The following example sets up an SSH2 RSA key
#and allows "usera" to SSH or SCP from "servera" to "serverb"
#without requiring a password

# Run "ssh-keygen -t rsa" on servera as usera to generate public and private keys:
[servera as usera] ssh-keygen -t rsa

#press enter to save the key in the default location
#which is ~/.ssh/id_rsa
#press enter at passphrase prompt (for an empty passphrase)
#press enter to confirm empty passphrase

#cat the newly created public key and
#copy the public key to your clipboard
[servera as usera] cat ~/.ssh/id_rsa.pub

#connect to serverb
#create a .ssh directory in your home directory
[serverb as usera] mkdir ~/.ssh
[serverb as usera] chmod 700 ~/.ssh

#make an "authorized_keys" file in the ~./ssh directory on serverb
#and paste the public key in that file

[serverb as usera] vi ~/.ssh/authorized_keys [serverb as usera] chmod 700 ~/.ssh/authorized_keys

#test the key by trying to SSH from servera to serverb
#you should not be asked for a password
[servera] ssh serverb

>>> cdm <mcintoshcd@san.rr.com> 12/07/02 10:54PM >>> I have downloaded and installed the latest OpenSSH packages from sunfreeware.com (3.5) I have them working on Solaris 2.6 through 9 without a problem. For script based backups, I need to eliminate the requirement to provide a password. During my web searches, I have found many examples for other flavors of Unix. I have tried several of these methods without success.

Do you need help?X

Does anyone have the definitive steps to take that will provide a remote login via ssh without asking for a password on Solaris?

Any assistance would be immeasurably appreciated. Received on Wed Dec 11 19:50:06 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library