Editing Secure file transfer program (sftp)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
[[wikipedia:Secure file transfer program]]
 
[[wikipedia:Secure file transfer program]]
 
sftp YourRemoteHost@"/path/to/folder/*" /local/path/folder/
 
 
  
 
== Binaries ==
 
== Binaries ==
* <code>/usr/lib/[[sftp-server]]</code>
+
* <code>/usr/lib/sftp-server</code>
* <code>/usr/bin/[[sftp]]</code>
 
 
 
== Usage ==
 
sftp
 
usage: sftp [-46aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
 
          [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
 
          [-o ssh_option] [-P port] [-R num_requests] [-S program]
 
          [-s subsystem | sftp_server] destination
 
 
 
== News ==
 
* [[OpenSSH 9.0]] Aug 2022 includes support for server side copies using <code>[[sftp cp]]</code> command.
 
  
 
== Activities ==
 
== Activities ==
Line 22: Line 8:
  
 
== Logs ==
 
== Logs ==
:<code>[[journalctl]] -u ssh</code>
 
:<code>[[This service allows sftp connections only.]]</code>
 
  
===Example of failed login===
+
This service allows sftp connections only.
 +
 
 +
Example of failed login:
 
  May 07 15:28:06 SERVER sshd[1869802]: Connection closed by authenticating user USERNAME 23.33.xx.xx port 12547 [preauth]
 
  May 07 15:28:06 SERVER sshd[1869802]: Connection closed by authenticating user USERNAME 23.33.xx.xx port 12547 [preauth]
  
===Example of failed login with [[verbose]] mode, see ([[sshd logs]])===
+
Example of failed login with [[verbose]] mode, see ([[sshd logs]]):
 
  May 07 15:55:01 SERVER sshd[1870524]: Failed none for  USERNAME  from 23.33.xx.xx port 12616 ssh2
 
  May 07 15:55:01 SERVER sshd[1870524]: Failed none for  USERNAME  from 23.33.xx.xx port 12616 ssh2
 
  May 07 15:55:01 SERVER sshd[1870524]: [[Failed publickey for]]  USERNAME  from 23.33.xx.xx port 12616 ssh2: [[RSA]] [[SHA256]]:tAkCKfvCmOTpVeceSyAOy9Sjyp213hQ7RLTyKUaNw12
 
  May 07 15:55:01 SERVER sshd[1870524]: [[Failed publickey for]]  USERNAME  from 23.33.xx.xx port 12616 ssh2: [[RSA]] [[SHA256]]:tAkCKfvCmOTpVeceSyAOy9Sjyp213hQ7RLTyKUaNw12
 
  May 07 15:55:00 SERVER sshd[1870524]: Connection from 23.33.xx.xx port 12616 on 10.10.10.xx port 22 [[rdomain]] ""
 
  May 07 15:55:00 SERVER sshd[1870524]: Connection from 23.33.xx.xx port 12616 on 10.10.10.xx port 22 [[rdomain]] ""
  
===Example of successfully session===
+
Example of successfully session:
 
  May 07 15:35:07 SERVER sshd[1870236]: '''Accepted publickey for''' USER from xx.xx.xx.xx port 60249 ssh2: ED25519 SHA256:EPEztZnnCh/fPqJ5wlgXUYMMx+LOOIegGdF76galaXw
 
  May 07 15:35:07 SERVER sshd[1870236]: '''Accepted publickey for''' USER from xx.xx.xx.xx port 60249 ssh2: ED25519 SHA256:EPEztZnnCh/fPqJ5wlgXUYMMx+LOOIegGdF76galaXw
 
  May 07 15:35:07 SERVER sshd[1870236]: pam_unix(sshd:session): session opened for user USER by (uid=0)
 
  May 07 15:35:07 SERVER sshd[1870236]: pam_unix(sshd:session): session opened for user USER by (uid=0)
Line 41: Line 27:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[jailkit]]</code>
 
* <code>[[jailkit]]</code>
* <code>[[scp]]</code>, <code>[[rsync]]</code>
+
* <code>[[scp]]</code>
* <code>[[pscp]]</code>, [[MobaXterm]]
+
* <code>[[rsync]]</code>
 
* [[Sftp configuration]]
 
* [[Sftp configuration]]
* <code>[[internal-sftp]]</code> directive in <code>[[sshd_config]]</code> added in [[OpenSSH 4.9]] (March 30, 2008)
+
* <code>internal-sftp</code> directive in <code>[[sshd_config]]</code> added in [[OpenSSH 4.9]] (March 30, 2008)
 
* <code>[[sshfs]]</code>
 
* <code>[[sshfs]]</code>
* <code>[[sftp (command)]]</code>
 
* [[Lftp]]
 
* <code>[[multipass transfer]]</code>
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: