KB Article #177294
Performing a manual SFTP connection from Backend through Edge SOCKS proxy
Problem
How to perform a manual SFTP connection from Backend through Edge SOCKS proxy?
One might want to manually test connectivity and SOCKS proxy configuration.
Resolution
To do so, you can use this command from a Backend :
sftp -o ProxyCommand='nc -X 5 -x edge-hostname:1080 %h %p' username@remote-host
Where:
"edge-hostname" should be replaced with the hostame or IP of Edge
"1080" is the default SOCKS port on Edge
"username" should be replaced with the remote user
"remote-host" should be replaced with the remote hostname or IP
** Please note, that you must nave “nc” (NetCat) installed on the server. If you do not, you would need a Unix admin to install it first.
If you cannot install "nc", you can use "curl" instead.
To do so, execute the following from the Backend:
curl --socks5 edge-hostname:edge-socks-port -p sftp://remote-host/ -vk -u username