1819925 Members
3276 Online
109607 Solutions
New Discussion юеВ

SFTP with a batch file

 
SOLVED
Go to solution
HarrinG
Advisor

SFTP with a batch file

I have looked through the forum and tech notes and wanted to confirm something. I am running OVMS 7.3-2 on an Alpha. To use SFTP in batch mode am I correct that you cannot use a password with the other client but have to use SSH key exchange? I am trying to use SFTP to send a file to another organization and they provided a user id and password. If I want to script the process do I need to request a public key from them?

Thanks
2 REPLIES 2
Hoff
Honored Contributor
Solution

Re: SFTP with a batch file

You should be asking the folks at the site what the remote site wants for access security, as it appears there might be differing expectations. (Are they expecting simple ftp? It appears they are, or they're expecting interactive sftp-style access.)

For scp and sftp, yes, I'd typically expect to see you generate a key locally and send it along to the remote site; you're registering a client with the folks running the server, so you send the key up to the server management. That to allow login via scp or sftp.

You can't get at the password from batch, which means you do need to specify a public key...

Some reading on this topic:
http://h71000.www7.hp.com/openvms/products/ssh/ssh.pdf
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
HarrinG
Advisor

Re: SFTP with a batch file

This is what I thought.

Thanks