Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PuTTY psftp command line with proxy authentication

Tags:

putty

psftp

Any idea how to connect below PuTTY psftp command with proxy authentication (SOCKS5)?

psftp username@host -P portnumber -pw password
like image 694
FIROZ K A Avatar asked Aug 21 '26 17:08

FIROZ K A


1 Answers

PuTTY and its tools have no command-line arguments to setup a proxy.

You have to pre-configure a stored session with the proxy.

Or of course, you can create an ad-hoc stored site automatically.

set REG_ADD=reg add HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\AdHoc /f

%REG_ADD% /v HostName /t REG_SZ /d host
%REG_ADD% /v UserName /t REG_SZ /d username
%REG_ADD% /v Protocol /t REG_SZ /d ssh
%REG_ADD% /v PortNumber /t REG_DWORD /d 22
%REG_ADD% /v ProxyMethod /t REG_DWORD /d 2
%REG_ADD% /v ProxyHost /t REG_SZ /d proxy

psftp -load AdHoc -pw password
like image 195
Martin Prikryl Avatar answered Aug 24 '26 14:08

Martin Prikryl