![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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). |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|