cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP setup

Michael Murphy_2
Frequent Advisor

SFTP setup

Hello - in the past when setting up on-way sftp to a remote servers we always exchanged keys. What is the minimal that is required for a one-way send to a remote machine - do i generate a key and send to them to put in authorized_keys - or vice-versa - or both? Do both sides need a .ssh dir? thanks
2 REPLIES
Tingli
Esteemed Contributor

Re: SFTP setup

The key need to be generated in your own site then append it to the remote site (authorized_keys). You can send or receive files from your site to remote one.
Ganesan R
Honored Contributor

Re: SFTP setup

Hi,

Note keys are required only for password less authentication. If it is normal sftp keys are not required.

You need to generate the public using ssh-keygen and append it on remote server $HOME/.ssh/autherized_keys file.

One way is enough. If you want to achieve password less login from both do the vice-versa also.

>>Do both sides need a .ssh dir<<<

yes. when you generate the key on source server this dir will be created. On remote server also you need this dir to put the authorized_keys file
Best wishes,

Ganesh.