Connect SFTP Server using Poweshell
This command connects to an SFTP server at ip
as user
, while explicitly allowing the legacy ssh-rsa
algorithm for host key verification and authentication.
Open Powershell and execute the following command
sftp -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa skamarthi@51.8.122.176
It asks to enter password.
Once connected, you’ll see an sftp> prompt
Then run following command to upload the files.
put /home/report.txt /var/www/html/
For download the file run:
get /home/report.txt
Comments
Post a Comment