From 3a6c7377b14f95f806cebb2bab775ddbd27a4e2a Mon Sep 17 00:00:00 2001 From: Manoj Ampalam Date: Tue, 18 Apr 2017 23:08:05 -0700 Subject: [PATCH] Updated sftp.exe examples (markdown) --- sftp.exe-examples.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sftp.exe-examples.md b/sftp.exe-examples.md index 8bd12b6..08e518d 100644 --- a/sftp.exe-examples.md +++ b/sftp.exe-examples.md @@ -1,16 +1,16 @@ -1. Setup sftp-server on host - * Add location of sftp-server.exe binary as a subsystem in sshd_config file by adding an entry like below: - * `Subsystem sftp d:\win32openssh\sftp-server.exe` - * Restart sshd.exe - * sftp-server will now be started automatically by sshd server when a sftp client connects to this computer + - Setup sftp-server on host + - Add location of sftp-server.exe binary as a subsystem in sshd_config file by adding an entry like below: + - `Subsystem sftp sftp-server.exe` + - Restart sshd.exe + - sftp-server will now be started automatically by sshd server when a sftp client connects to this computer -2. sftp.exe examples - * `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 file1.txt //upload the file to remote system from the current local directory` - * `exit` + - sftp.exe examples + - `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 file1.txt //upload the file to remote system from the current local directory` + - `exit`