mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 16:04:46 +02:00
Updated Running sftp and sftpserver (markdown)
parent
853d2ea53b
commit
88e6525e26
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
• _SFTP client needs ssh client and SFTP server uses sshd server. So first setup ssh client and server using the wiki instructions._
|
• _SFTP client needs ssh client and SFTP server uses sshd server. So first setup ssh client and server using the wiki instructions "Running SSH and SSHD"._
|
||||||
|
|
||||||
|
|
||||||
## # Setup sftp-server
|
## Setup sftp-server
|
||||||
* stop the sshd server by doing steps like "net stop openssh"
|
* stop the sshd server by doing steps like "net stop openssh"
|
||||||
* Add location of sftp-server.exe binary as a subsystem in sshd_config file by adding an entry like below:
|
* Add location of sftp-server.exe binary as a subsystem in sshd_config file by adding an entry like below:
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
* start the sshd server by doing steps like "net start openssh"
|
* start the sshd server by doing steps like "net start openssh"
|
||||||
* sftp-server will now be started automatically by sshd server when a sftp client connects to this computer
|
* sftp-server will now be started automatically by sshd server when a sftp client connects to this computer
|
||||||
|
|
||||||
## # run Sftp client
|
## run Sftp client
|
||||||
`sftp test1@localhost //login to local machine using test1 username`
|
`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`
|
`sftp -i .ssh/id_rsa test1@remotehost //login using .ssh/id_rsa public key pair`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user