Skip to content

Instantly share code, notes, and snippets.

@benjiqq
Last active January 1, 2016 13:08
Show Gist options
  • Save benjiqq/8148736 to your computer and use it in GitHub Desktop.
Save benjiqq/8148736 to your computer and use it in GitHub Desktop.
ssh trouble
#links
#https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
#https://confluence.atlassian.com/display/BITBUCKET/Troubleshoot+SSH+Issues
#http://security.stackexchange.com/questions/20706/what-is-the-difference-between-authorized-key-and-known-host-file-for-ssh
#http://serverfault.com/questions/132970/can-i-automatically-add-a-new-host-to-known-hosts
#http://en.wikibooks.org/wiki/OpenSSH/Client_Configuration_Files#.7E.2F.ssh.2Fknown_hosts
https://help.ubuntu.com/10.04/serverguide/openssh-server.html
https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
sudo stop ssh
sudo start ssh
# check
# /etc/hosts
# .ssh/known_hosts
# .ssh/authorizedkeys
#important files
#$home/.ssh
#projectdir/.git
#check version
ssh -v
#check
ssh-add -l
#verfiy key
ssh -T git@bitbucket.org
#ssh-keyscan
ssh-v git@bitbucket.org
#debugging all the way
install own sshd server
https://www.digitalocean.com/community/articles/how-to-use-ssh-to-connect-to-a-remote-server-in-ubuntu
roll custom python
http://jessenoller.com/blog/2009/02/05/ssh-programming-with-paramiko-completely-different
ssh -o HostKeyAlgorithms=ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss root@192.81.222.132
http://serverfault.com/questions/471327/how-to-change-a-ssh-host-key
#force RSA
http://askubuntu.com/questions/133172/how-can-i-force-ssh-to-give-an-rsa-key-instead-of-ecdsa
#You can actually change where the SSH server looks for the key in the /etc/ssh/sshd_config file with the HostKey /path/to/host/key setting.
#ssh agent stuff
#Agent forwarding may be blocked on the server's side. Make sure AllowAgentForwarding is set in sshd_config
https://help.github.com/articles/using-ssh-agent-forwarding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment