Quote:
Originally Posted by
girish.batra
Dear all
I am facing one problem which is related to enabling Autossh between windows and solaris machine. If suppose their are two servers, server A is having windows and server B is having Solaris.I install openssh server software for windows through sourceforge.net site. What my requirement is doing sftp from solaris to windows to transfer files from solaris to windows automatically through autossh without needing a password and it has to be done through root user. Firstly I created a Public/ private key pairs on solaris machine with giving blank password for passphrase , I use RSA1 algorithms which create identity and identity.pub file in /.ssh directory of the root user on solaris machine. Then I manually sftp the identity.pub file to /home/root/.ssh directory on windows server. I then I rename it to authorized_keys file.
After all this, when I log into solaris server as a root user then I sftp too windows as a root user, at that time it ask for the password also again.
Please tell me where I wen't wrong. I Badly need a solution where it should not ask for the password of the root user on windows machine.
Kind regards
Hi,
Most of the time, public key authentication is disabled by default (at least on most unix distrib) look for the config file of sshd (sshd_config hopefully) on your windows system then uncomment if needed the 3 lines related to public key authentication (RSAAuthentication yes, PubkeyAuthentication yes, etc ...)
Second, make sure you put the authorization keyfile in the right directory on unix its easy, its under the ".ssh" directory, on windows you should have a .ssh directory too on the root of your primary drive but im not really sure ...
Restart the sshd service on your windows and reconnect again, i hope that would do the trick