Uday's website
Published on Uday's website (https://uday.net)

Home > SFTP

SFTP [1]

Submitted by uday [2] on December 6, 2016 - 9:45pm

I am trying to set up SFTP access to my site and having problem.

Thankfully I found following link which was useful to set up Public Key Authentication on my GNU/Linux laptop.

http://www.computerhope.com/unix/sftp.htm [3]

Important Steps:

I had to generate SSH keys on my server and authorize the public key.

Then I had to download SSH private key to laptop.

Then I had to check whether .ssh directory already existed.

ls ~/.ssh

It did not exist, so I had to create it.

mkdir ~/.ssh

Then I had to copy SSH private key to this folder and change permission of folder and SSH key to 700

chmod 700 ~/.ssh

chmod 700 ~/.ssh/id_rsa*

Now try using SFTP from command prompt.

sftp -P <port number> <user>@<site> (Note: Use -P with a capital P, lowercase p will not work).

It did not work. I got error "Server unexpectedly closed network connection". Not sure what else to do. I am stuck.

Rating: 

 Valid XHTML 1.0 StrictCreative Commons LicenseVerbatim copying and redistribution of this entire page are permitted provided this notice is preserved. All content on this website including archives (including text, photographs, audio files and any other original work), unless otherwise noted, is licensed under a Creative Commons License or later.


Source URL:https://uday.net/SFTP

Links
[1] https://uday.net/SFTP [2] https://uday.net/user/1 [3] http://www.computerhope.com/unix/sftp.htm