5

Copy file to server that support only SSH2

view full story
linux-howto

http://www.unix.com – Dear community, I have to copy a file from Red Hat to another server that supports only SSH2. SFTP command from Red Hat works fine, but since I have to insert SFTP command into a script, is it possibile to PUT file using SFTP in "one" line code? Or, anyway, without using external file? This works, but instead to put, it GET the file FROM the server: Code: sftp [email protected]:/root/filetoput (HowTos)