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 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 04:21 AM
Password zunacai Shell Programming and Scripting 1 08-24-2006 02:51 PM
sc password ppass SUN Solaris 2 10-10-2005 12:59 AM
Change password by pushing encrypted password to systems benq70 UNIX for Dummies Questions & Answers 1 09-02-2005 09:08 AM
password pydyer Security 3 01-08-2002 11:39 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 11-23-2004
larryase larryase is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 69
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
  #2 (permalink)  
Old 11-25-2004
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,661
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
  #3 (permalink)  
Old 12-07-2004
bostontechgroup
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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).
  #4 (permalink)  
Old 12-07-2004
larryase larryase is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 69
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.
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 08:20 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