VPS2 SSH Keys
Direct shell access for the root user using a password is disabled by default. You can connect as root if you use
SSH keys. SSH keys can be generated in the client that you use to connect to your VPS v2 server with.
Follow these steps to generate the SSH key for WinSCP:
- Download and install WinSCP. Choose the installation
package to include public key tools PuTTYgen and Pageant.
- Run PuTTYgen located in the directory where WinSCP was installed. By default PuTTgen is located
under Start/Programs/WinSCP3/Key tools.
- Click on the SSH2 RSA or SSH2 DSA radio button under Parameters. Do not use SSH1 if possible.
- Click Generate under Actions to generate a public/private key pair.
- Copy the entire public key under "Public key for pasting into OpenSSH authorized_keys file" and
paste the key into the /home/userid/.ssh/authorized_keys or /root/.ssh/authorized_keys file on the VPS2
server. The authorized_keys file may not exist and need to be created.
- Enter and confirm a Key passphrase and click Save private key.
- Close PuTTYgen.
- Start WinSCP3
- Under Session enter the Host name, User name, Private key file.
- Click Login. You will be prompted for your private key passphrase unless you have already added your
private key to the Pageant ssh agent.
Use the Pageant SSH agent thats included with WinSCP to store your key.
|
|