-
Notifications
You must be signed in to change notification settings - Fork 767
sftp.exe examples
Joey Aiello edited this page May 15, 2017
·
4 revisions
- Add location of sftp-server.exe binary as a subsystem in sshd_config file by adding this entry:
Subsystem sftp sftp-server.exe
- Restart sshd.exe
Restart-Service sshd
-
sftp-server
will now be started automatically bysshd
when an SFTP client connects to the host
This example connects to the local machine (localhost
) as the user test1
, and downloads/uploads some files.
sftp test1@localhost //login to local machine using test1 username
sftp -i .ssh/id_rsa test1@remotehost //login using .ssh/id_rsa public key pair
pwd //show current remote directory
lpwd //show current local directory
cd /tests //changed to remote directory c:/tests
get file1.txt //download file1.txt from remote system to local directory
put file2.txt //upload the file to remote system from the current local directory
exit
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages