Generate Ssh Key Different Name

Hi everyone.

Ssh-keygen -f anything creates two files in the current directory. Anything.pub is the public key, which you could append to the user's /.ssh/authorizedkeys on any destination server. The other file, just called anything is the private key and therefore should be stored safely for the user.

I have a my droplet with SSH key and it works properly. Microsoft xp tablet pc edition. I created a new user in this droplet. I want to create a new SSH key for this new user. I will use this user for my php website. So, this new ssh key must be different from the root user key. How can I do that?

I’ve been doing a lot of research. But I could not find something that works.

You should be clear on the answers you provide. Because my english is not good. Esx 3.5 license key generator. Thanks.

Generate Ssh Key Different Name Labels

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×

Recently, my desktop hard disk crashed. So I reinstalled Linux and created a new set of private RSA keys for authentication. However, two of my remote UNIX servers still uses old DSA keys. I do not remember root password for those servers. I do have backup of private and public DSA keys and currently stored in /backup/home/user/.ssh/id_dsa and /backup/home/user/.ssh/id_dsa.pub. How do I force my ssh clients to use identity file /backup/home/user/.ssh/id_dsa to get back to my remote UNIX servers?

Advertisements

The ssh client allows you to selects a file from which the identity (private key) for RSA or DSA authentication is read. Rsa_generate_key_ex return value formula. The default is ~/.ssh/identity for protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol version 2. Identity files may also be specified on a per-host basis in the configuration file. It is possible to have multiple -i options (and multiple identities specified in configuration files). The syntax is as follows:

Generate ssh key github

To use /backup/home/user/.ssh/id_dsa, enter:

~/.ssh/config SSH Client Configuration

You can set identity file in ~/.ssh/config as follows:
vi ~/.ssh/config
Add both host names and their identity file as follows:

You can add other settings per host such as port number, X11 forwarding, real hostnames and much more. Save and close the file. You can connect as follows:

Recommended readings:

Generate ssh key putty

Powershell Generate Ssh Key

  • See the ssh_config and sshd man page for more information.

Generate Ssh Key Different Name Tags

ADVERTISEMENTS