I am trying to login to Windows without password from a Linux server. I have already installed OpenSSH from GitHub and I'm able to do scp
and ssh
. I tried copying the authorized_keys
to the Windows location. But it's still not working.
The functionality should be no password prompt for running ssh or scp from linux environment to login/show windows directory.
I tried below commands:
cat .ssh/id_rsa.pub | ssh edh_win@xxx.xxx.xxx.xxx 'cat >> .ssh/authorized_keys'
ssh edh_win@xxx.xxx.xxx.xxx "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
But getting error not able to understand cat
and chmod
.
Updating the errors
'cat' is not recognized as an internal or external command,
operable program or batch file.
'chmod' is not recognized as an internal or external command,
operable program or batch file.
Do I need to install cygwin? If yes, please help with the implementation.
Any assistance is appreciated. Below is an image of the error.