Using SSH keys in Linux/en: Difference between revisions

Jump to navigation Jump to search
Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 81: Line 81:
=Connecting using a key pair=
=Connecting using a key pair=
<li>Finally test the new key by sshing to the remote machine from the local machine with
<li>Finally test the new key by sshing to the remote machine from the local machine with
<source lang="console">[name@yourLaptop]$ ssh -i /home/ubuntu/.ssh/id_rsa USERNAME@ADDRESS</source>
<source lang="console">[name@yourLaptop]$ ssh -i /path/to/your/privatekey USERNAME@ADDRESS</source>
where
where
:*<code>/home/ubuntu/.ssh/id_rsa</code> specifies your private key file;
:*<code>/path/to/your/privatekey</code> specifies your private key file, e.g. <code>/home/ubuntu/.ssh/id_rsa</code>;
:*<code>USERNAME</code> is the user name on the remote machine;
:*<code>USERNAME</code> is the user name on the remote machine;
:*<code>ADDRESS</code> is the address of the remote machine.
:*<code>ADDRESS</code> is the address of the remote machine.
38,760

edits

Navigation menu