in reply to Simple perl socket code. Any way to improve/simplify it?

Why not preserve sanity, and use scp.

Yes - it even works on Windows if you install cygwin.

                "From there to here, from here to there, funny things are everywhere." -- Dr. Seuss

  • Comment on Re: Simple perl socket code. Any way to improve/simplify it?

Replies are listed 'Best First'.
Re^2: Simple perl socket code. Any way to improve/simplify it?
by afoken (Chancellor) on Jan 23, 2020 at 18:40 UTC
    use scp. Yes - it even works on Windows if you install cygwin.

    No need for cygwin. PuTTY comes with pscp.exe (and psftp.exe) for command line use. If you insist on using a mouse, there is WinSCP that is compatible with PuTTY's way of storing sessions and keys, and it can do scp and sftp as well as classic FTP. All of those programs can use PAgent.exe as SSH authentication agent, so you can work without passwords and type the key's passphrase only once during boot.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)