|
|
Question : Problem: SFTP from unix to windows
|
|
I want to set up sftp from a unix (solaris) host to a windows 2003 server. On unix I will be running the process as userA and in Windows, I want to sftp as userB. Basically the command looks like this
sftp -b userB@WindowsBox
and will be run by userA.
Can you ell me how to set this up so that it uses public key authentication instead of password?
Also when I run the sftp command on unix, do I have to specify a command line option to indicate that it should use public key authentication instead of password?
I see from some previous trails that ssh has to be installed on the windows machine using cygwin. Does the cygwin server need to be installed or the client only will do?
|
Answer : Problem: SFTP from unix to windows
|
|
Hi,
The basic idea is that you need to have:
- ssh server installed on windows and ssh client on unix. - each user will have to generate public / private keys on his / her m/c - each user should get copy of the other user public key
On the unix box run
ssh-keygen cd .ssh cp identity.pub authorized_keys
identity.pub is the file taken from the windows user
on the windows machine
cd %HOME%
This should put you in C:\Documents and Settings\[your username]; if not, something is wrong with your HOME variable.
scp username@unixserver:.ssh/identity .ssh/identity
This will copy the unix user identity file. make sure that dir .ssh is created
|
|
|