Skip to content

Instantly share code, notes, and snippets.

@smc181002
Last active November 9, 2021 05:50
Show Gist options
  • Save smc181002/bf7e2f292bd072623e6f47fb13af062a to your computer and use it in GitHub Desktop.
Save smc181002/bf7e2f292bd072623e6f47fb13af062a to your computer and use it in GitHub Desktop.
use ssh key authentication from windows system to linux system

README

Creating key

ssh-keygen

copying key to linux server

type $env\USERPROFILE\.ssh\<KEY FILE NAME>.pub | ssh <USERNAME>@<IP OR FQDN OF SERVER> "cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment