User Tools

Site Tools


it_tips:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it_tips:ssh [2017/05/03 16:55]
florido [Debugging problems]
it_tips:ssh [2017/05/03 17:40] (current)
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 [[#Speedup connection using tunneling]],​ 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 ​
it_tips/ssh.1493823308.txt.gz ยท Last modified: 2017/05/03 16:55 by florido