Skip to content

Instantly share code, notes, and snippets.

@jahidHn
Last active May 26, 2021 08:57
Show Gist options
  • Save jahidHn/7c44bceaf4ba5324a89316dc5266ce65 to your computer and use it in GitHub Desktop.
Save jahidHn/7c44bceaf4ba5324a89316dc5266ce65 to your computer and use it in GitHub Desktop.
SSH Command
## ssh-copy-id mac
sudo curl https://raw.github.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
sudo chmod +x /usr/local/bin/ssh-copy-id
## Copy ssh key to remote
ssh-copy-id -i ~/.ssh/id_rsa.pub '-p portnumber username@ipaddress'
###Debuging with remote connect
ssh -vv [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment