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
rb:ssh [08/07/2019 11:16]
andrew [Debug config sshd_config]
rb:ssh [18/03/2020 10:36] (current)
andrew [ssh_config - client end]
Line 88: Line 88:
  fi  fi
 </​code>​ </​code>​
 +
 +
 +
 +===== Regenerate ssh keys =====
 +
 +
 +  root@usta02:​~#​ cd /etc/ssh/
 +  root@usta02:/​etc/​ssh#​ ls
 +  moduli ​     sshd_config ​      ​ssh_host_dsa_key.pub ​ ssh_host_ecdsa_key.pub ​ ssh_host_rsa_key.pub
 +  ssh_config ​ ssh_host_dsa_key ​ ssh_host_ecdsa_key ​   ssh_host_rsa_key ​       ssh_import_id
 +  ​
 +  root@usta02:/​etc/​ssh#​ rm ssh_host_* old/
 +  ​
 +Create new keys:-
 +
 +  root@usta02:/​etc/​ssh#​ dpkg-reconfigure openssh-server
 +  Creating SSH2 RSA key; this may take some time ...
 +  Creating SSH2 DSA key; this may take some time ...
 +  Creating SSH2 ECDSA key; this may take some time ...
 +  ssh stop/​waiting
 +  ssh start/​running,​ process 2258
 +  ​
 ===== Multifactor Auth ===== ===== Multifactor Auth =====
  
Line 100: Line 122:
  
 http://​www.yolinux.com/​TUTORIALS/​LinuxTutorialLDAP-BindPW.html http://​www.yolinux.com/​TUTORIALS/​LinuxTutorialLDAP-BindPW.html
 +
 +
 +
 +===== ssh_config - client end =====
 +
 +The ''​~/​.ssh/​config''​ file allows host specific information to be added such as protocls to force use of, see [[networking:​cisco-3750-ssh|ssh to Cisco 3750]].

rb/ssh.1562584605.txt.gz ยท Last modified: 08/07/2019 11:16 by andrew