![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|
|
|||
|
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). |
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |