![]() Replace the with the IP address or FQDN (Fully Qualified Domain Name) of the remote Linux device you would like to copy the public key to. ssh command can used in windows powershell which is system build-in,it like this: ssh in powershell. ![]() Next, we use the below PowerShell one-line command to copy the contents of the id_rsa.pub public key to a remote Linux device. SHA256:/mjkrJOQbRzCAwlSPYVBNcuxntm/Ms5/MMC15dCRrMc I wrote a module for dealing with SSH sessions from PowerShell, based on the SSH.NET library found on CodePlex. If you look at SSH (the command for Linux), you can execute remote commands in this fashion: Single command: ssh HOST ls Several commands: ssh HOST ls pwd cat /path/to/remote/file If you want to do this on a windows machine, you either need to use plink.exe or a similar tool. Your public key has been saved in C:\Users\Christopher/.ssh/id_rsa.pub. With cygwin you also get many other Linux tools like a local bash, perl, python, grep awk,cssh. Your identification has been saved in C:\Users\Christopher/.ssh/id_rsa. Should work similar to ssh in Linux systems. Enter file in which to save the key (C:\Users\Christopher/.ssh/id_rsa):Ĭreated directory 'C:\Users\Christopher/.ssh'.Įnter passphrase (empty for no passphrase):
0 Comments
Leave a Reply. |