Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

copy ssh key from windows to linux

# PowerShell Script
# Note: this appends the key to authorized_keys, doesn't overwrite it
type $env:USERPROFILE.sshid_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"
Source by www.chrisjhart.com #
 
PREVIOUS NEXT
Tagged: #copy #ssh #key #windows #linux
ADD COMMENT
Topic
Name
8+5 =