VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   File Transfer (https://forums.vandyke.com/forumdisplay.php?f=18)
-   -   Remote Server SFTP back to CRT? (https://forums.vandyke.com/showthread.php?t=13315)

DrKubo 11-13-2018 12:04 PM

Remote Server SFTP back to CRT?
 
Hi there,
I'm doing some shell scripting and at one point I want the script to push an output file to my local machine. I have no issue spawning an sftp session to another remote machine, but for some reason it hangs when I use my machine's IP from the remote host.

If my PC IP is 123.231.123.231,
remoteServer$ ping 123.231.123.231
PING 123.231.123.231 (123.231.123.231) 56(84) bytes of data.
64 bytes from 123.231.123.231: icmp_seq=1 ttl=126 time=0.854 ms

but...
remoteServer$ sftp 123.231.123.231
Connecting to 123.231.123.231...

And then it simply hangs there. If it makes a difference I am in a corporate environment with active directory in use. I know my SFTP tab works through SecureCRT, so I'd really like to know how to do the inverse. Perhaps CRT has a unique "username" or port on my machine?
Please advise.

Thank you,
Omar

berdmann 11-13-2018 12:37 PM

Hi DrKubo,

SecureCRT is an SFTP client not an SFTP server, thus it is unlikely that your SecureCRT machine has an SFTP server that is listening for incoming SFTP connections.

You may be able to accomplish this with SecureCRT's SFTP tab using a script. Please refer to our forum script example, "SFTP Tab Automation", which demonstrates opening an SFTP tab & programmatically driving a file download:

https://forums.vandyke.com/showpost....90&postcount=1

Please let us know if you have any additional questions!

DrKubo 11-14-2018 05:38 AM

Oh, wow! I didn't even consider the client/server roles in relation to SFTP. That makes more sense. Thank you!


All times are GMT -6. The time now is 04:14 PM.