[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: web server for development



On 1/10/2020 5:52 PM, Russell L. Harris wrote:
> On Fri, Jan 10, 2020 at 09:54:34AM -0500, Dan Ritter wrote:
>>> ... whether rsync is an option.
>> Sure, as long as you run it over ssh.  The default in Debian is to
>> run rsync over ssh, but it can also be explicitly invoked that way:
>> rsync -av --rsh=ssh host::module /dest
>> rsync -av -e "ssh -l ssh-user" rsync-user@host::module /dest
>> rsync -e "ssh -l sshuser" localpath remotehost:remotepath
>
> For shared hosting, Hostgator offers:
>
> (1) SFTP (SSH FTP, port 22)
>

Use this one to pull and push files.

> (2) FTPS (FTP over SSL or TLS, port 21)
>
> (3) SSH (ssh -p 2222 cpanelusr@ip.add.re.ss)
>

Use this one to connect to the host or to execute command on the host.



Simply put, sftp and ssh uses the same protocol, ssh is to execute a
command remotely/connect to the host and sftp is to manage files remotely.

Here the ports are differents but the protocol is the same.

Don't complicate things with ftps/ftp!

--
John Doe


Reply to: