Skip to content

Instantly share code, notes, and snippets.

@awaismirza
Created April 26, 2023 10:19
Show Gist options
  • Save awaismirza/344d7e6029f3f820a07b97d12c1f654f to your computer and use it in GitHub Desktop.
Save awaismirza/344d7e6029f3f820a07b97d12c1f654f to your computer and use it in GitHub Desktop.
How to copy ssh-keygen using port

Replace {PORT} with port and USER and IP with your username and IP address

ssh-copy-id -o 'Port={PORT}' USER@IP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment