The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
password MastaFue UNIX for Dummies Questions & Answers 3 05-07-2008 01:21 AM
Password zunacai Shell Programming and Scripting 1 08-24-2006 11:51 AM
sc password ppass SUN Solaris 2 10-09-2005 09:59 PM
Change password by pushing encrypted password to systems benq70 UNIX for Dummies Questions & Answers 1 09-02-2005 06:08 AM
password pydyer Security 3 01-08-2002 07:39 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2004
Registered User
 

Join Date: Nov 2004
Posts: 68
no password ssh

Hello all,

I would like to know if anyone had ever set up a network in which they used DHCP and OPENSSH with no password. I can configure my ssh files to allow me to enter any machine without a password as long as I have generated the public and private keysa nd store them in my .ssh/aut... But what would happen if the IP is changed? Will I have to regenerate the public and private keys? Is there a way in which I can pre generate the keys and just mv it to the server after it gets it new IP?

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-25-2004
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,304
Yes, I have used SSH with and public-private key pair with no password. It works great if you don't mind the risk of someone gaining access to your machine.

For example, if your machine is already password protected (like a login password), you might consider the benefits of a key pair without a password if you login to a remote server with SSH often.

Yes, you will have to regenerate keys if you change IP address on either the server or the client.

I don't think there is an easy way to pregenerate keys, but you might find a way. If you do, please post how to do it.

Neo
Reply With Quote
  #3 (permalink)  
Old 12-07-2004
bostontechgroup
Guest
 

Posts: n/a
You will need to create a public/private key pair to use for authentication (look up ssh-keygen). This will allow a connection to the remote machine based upon RSA or DSA authentication instead of a password. If a passphrase is used in ssh-keygen, the user will be prompted for a password each time in order to use the private key.

With ssh2 I would recommend creating DSA keys using the procedure below. This will create a public/private DSA key for use in ssh2 sessions only. The public key is stored in ~/.ssh/id_dsa.pub, while the private key is in ~/.ssh/id_rsa. DSA public keys are placed in ~/.ssh/authorized_keys2 on the remote machine.

ssh-agent(1) and ssh-add(1) are utilities used in managing multiple passworded private keys.



Create your own DSA keys. Step-by-step instructions:

1. Run ssh-keygen -t dsa -N '' on your source host (creates a key with No Passphrase).

2. copy $HOME/.ssh/id_dsa.pub to $HOME/.ssh/authorized_keys2 on your remote host

3. chmod your $HOME/.ssh directory to be read/write/execute for only the owner (chmod -R 700 .ssh)

4. Make sure you _really_ are running ssh2 when connecting (Usually this is the default setting).
Reply With Quote
  #4 (permalink)  
Old 12-07-2004
Registered User
 

Join Date: Nov 2004
Posts: 68
bostontechgrou,
Thanks but I have already done this. I just wanted to know if there is any way to do it when the IP is change after you have generated the keys. Say for a DHCP client after reboot and a new IP is assigned.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:49 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