ssh-copy powershell 1

ssh-copy powershell

type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"

Here is what the above code is Doing:
1. Create a new SSH key pair using the ssh-keygen command.
2. Copy the public key to the remote server using the ssh-copy-id command.
3. Test the connection using the ssh command.

Similar Posts