This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
it_tips:ssh [2017/05/03 14:55] florido [Debugging problems] |
it_tips:ssh [2017/05/03 15:39] florido [SSH key pair quick setup] |
||
---|---|---|---|
Line 185: | Line 185: | ||
</code> | </code> | ||
- Try to login to the server **using the identity created**: Command:<code:bash>ssh -i ~/.ssh/myid_rsa.pub pflorido@watto.matfys.lth.se</code> | - Try to login to the server **using the identity created**: Command:<code:bash>ssh -i ~/.ssh/myid_rsa.pub pflorido@watto.matfys.lth.se</code> | ||
+ | |||
+ | You can now create entries in your ''~/.ssh/config'' file to use tunnelling as described in [[#]], and the agent should automatically forward your keys. | ||
===== Debugging SSH problems and useful commands ===== | ===== Debugging SSH problems and useful commands ===== | ||
Line 204: | Line 206: | ||
<code:bash>ps aux | grep ssh-agent</code> | <code:bash>ps aux | grep ssh-agent</code> | ||
+ | ==== Remove an offending key from known_hosts ==== | ||
+ | |||
+ | <code:bash>ssh-keygen -R <hostname></code> | ||
+ | |||
+ | ==== Remove an offending key from known_hosts ==== | ||
+ | <code:bash>ssh-keygen -R <hostname or IP></code> | ||
====== References ====== | ====== References ====== | ||
* Arch linux SSH PKI tutorial, https://wiki.archlinux.org/index.php/SSH_Keys | * Arch linux SSH PKI tutorial, https://wiki.archlinux.org/index.php/SSH_Keys |