SSH

WinSCP scripting

# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open sftp://user@site.com/ -privatekey="id_rsa.ppk" -rawsettings ProxyMethod=3 ProxyHost=proxy ProxyPort=8080
# Change remote directory
cd /incoming
# Force binary mode transfer
option transfer binary
# Download file to the local directory D:\
get update.csv D:\

Questions answered

Problems with displaying UTF-8 symbols (pseudographics)

If you have problems with displaying UTF-8 symbols with this OpenSSH compilation for Windows like on this screenshot, then update your client to this one.

How to extract public key from SSH private key file?

From How do I retrieve the public key from a SSH private key?:

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub

How to setup two-step verification

software/ssh.txt · Last modified: 2015/03/10 14:36 by dmitry
 
 
Recent changes RSS feed Driven by DokuWiki