I try to use ssh command on Windows 10.
Try to create ssh key on windows But I got failed message as follows
PS C:\powershell> ssh-keygen.exe -q -b 2048 -t rsa -N "" -C "" -f pm01_rsa Saving key "pm01_rsa" failed: passphrase is too short (minimum five characters) PS C:\powershell> l
So I executed the below command.
PS C:\powershell> ssh-keygen.exe -b 2048 -t rsa -f pm01_rsa Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: *snip* PS C:\powershell>
After this, I copy public key to remote server "pm01" and prepare for ssh connection. and then, I try to create a new connection for port forward.
PS C:\powershell> Start-Process -FilePath ssh -ArgumentList "-i .\pm01_rsa -N -f -L 10022:192.168.122.62:22 root@192.168.1.201" -WindowStyle Hidden PS C:\powershell> PS C:\powershell> Get-Process -Name ssh NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ -- -- ----------- 13 1.94 7.80 0.03 31928 1 ssh PS C:\powershell>