TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:sftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:sftp [2020/10/26 04:30] – [Windows] Scott Cunliffetechnote:sftp [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 16: Line 16:
 The Linux ''sftp'' command does not provide an argument to specify a password. If you do not want to configure keys for the transfer, you can install the ''sshpass'' program. The Linux ''sftp'' command does not provide an argument to specify a password. If you do not want to configure keys for the transfer, you can install the ''sshpass'' program.
  
-<sxh text;>+<code text;>
 [root@corp-01 ~]# yum install sshpass [root@corp-01 ~]# yum install sshpass
 Last metadata expiration check: 0:04:14 ago on Fri 19 Apr 2019 04:22:49 PM MDT. Last metadata expiration check: 0:04:14 ago on Fri 19 Apr 2019 04:22:49 PM MDT.
Line 51: Line 51:
  
 Complete! Complete!
-</sxh>+</code>
  
 Once ''sshpass'' is installed, you can call ''sshpass'', pass the password and then pass the ''sftp'' command string as an argument. Once ''sshpass'' is installed, you can call ''sshpass'', pass the password and then pass the ''sftp'' command string as an argument.
Line 58: Line 58:
  
  
-<sxh text;>+<code text;>
 [root@corp-01 ~]# sshpass -p "password" sftp user@server.tapetrack.com <<< "put drm.csv upload/drm.csv" [root@corp-01 ~]# sshpass -p "password" sftp user@server.tapetrack.com <<< "put drm.csv upload/drm.csv"
 Connected to server.tapetrack.com. Connected to server.tapetrack.com.
 sftp> put drm.csv upload/drm.csv sftp> put drm.csv upload/drm.csv
-</sxh>+</code>
  
 ===== Windows ===== ===== Windows =====
technote/sftp.1603686607.txt.gz · Last modified: 2025/01/21 22:07 (external edit)