mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-23 22:15:37 +02:00
Page:
sftp.exe examples
Pages
About Win32 OpenSSH and Design Details
Area Owners
Build OpenSSL
Building OpenSSH for Windows (using LibreSSL crypto)
Building Win32 OpenSSH on Linux
Certificate Authentication
DefaultShell
Deploy Win32 OpenSSH
Difference between openssh 5.9p1 and nomachine implementation
Dos2Unix Text file format converters
Eclipse CDT and GDB setup to debug SSH tools
FIDO U2F usage
Home
How to retrieve links to latest packages
Install Win32 OpenSSH Using MSI
Install Win32 OpenSSH
Intro Links for Penetration Testing
Logging Facilities
Migrate sshd_config from older versions
OpenSSH 32 bit Build and Installation Instructions
OpenSSH 64 bit Build and Installation Instructions
OpenSSH build sequence
OpenSSH utility scripts to fix file permissions
Project Scope
Project Status
Run OpenSSH Pester Tests
Run commands for various shells
Running Tests
SSH remote sessions on Windows
Security protection of various files in Win32 OpenSSH
Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH
Setup public key based authentication for windows
TTY PTY support in Windows OpenSSH
Troubleshooting Steps
Various Considerations
Win32 OpenSSH RoadMap
[Deprecated] Building using VS 2015
[Deprecated] Win32 OpenSSH Automated Install and Upgrade using Chocolatey
sftp.exe examples
ssh agent
ssh.exe examples
ssh
ssh_config
sshd
sshd_config
Clone
4
sftp.exe examples
Joey Aiello edited this page 2017-05-15 15:45:35 -07:00
Table of Contents
Setup sftp-server
on host
- 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
Using sftp.exe
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
Manuals
Installation
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages
Usage
- SSH Usage Examples
- SFTP Usage Examples
- Using Certificate Authentication
- Fix SSH file permissions
- Info on SSH remote sessions on Windows
- TTY PTY support
- Troubleshooting