In this tutorial I will show you how to manage SFTP authenticated user configuration on Ubuntu Server. You will see how to manage an SFTP connection on FileZilla and I will explain what is the difference between SFTP and FTPS.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# SFTP Authenticated user configuration on Ubuntu Server vagrant ssh # SFTP stands for SSH File Transfer Protocol. # There are numerous SFTP server implementations both for UNIX, Windows and z/OS. # The most widely known is perhaps OpenSSH, but there are also proprietary implementations. # Typically the port used is 22. # SFTP file transfer protocol is part of SSH protocol suite. # Check if SSH is up and running ps aux | grep ssh # FileZilla # File / Site Manager... / Duplicate "http.liviubalan.com (FTP login)" # Name: http.liviubalan.com (SFTP login) # Host: http.liviubalan.com # Protocol: SFTP - SSH File Transfer Protocol # Logon Type: Normal # User: <see provision-shell/resources/var.sh::LIV_USR_ADM_USER|LIV_USR_WWW_USER> # Password: <see provision-shell/resources/var.sh::LIV_USR_ADM_PWD|LIV_USR_WWW_PWD> # Remote site: /var/www/http.liviubalan.com # Local site: Right click on a file / Upload # Remote site: Right click on a file / Download # Connect through SFTP using private key # Host OS vagrant ssh-config # /liviu-doc/vagrant/liviubalan.com-vagrant-ubuntu/.vagrant/machines/liviubalan.com-VM/virtualbox/private_key # FileZilla # Edit / Settings... # SFTP / Add keyfile... # Convert keyfile / Yes # filezilla-keyfile # File / Site Manager... / Duplicate "http.liviubalan.com (SFTP login)" # Name: http.liviubalan.com (SFTP key) # Host: http.liviubalan.com # Protocol: SFTP - SSH File Transfer Protocol # Logon Type: Normal # User: vagrant # Password: # Do not confuse SFTP with FTPS. # SFTP and FTPS protocols share nothing in common except their ability to securely transfer files. # FTPS is based on FTP. SFTP is based on SSH. # Do not confuse FTP with FTPS. # Connect using "http.liviubalan.com (FTPS explicit)" # Connect using "http.liviubalan.com (FTP login)" # 530 Non-anonymous sessions must use encryption # Useful links https://github.com/liviubalan/liviubalan.com-vagrant-ubuntu https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol http://www.jscape.com/blog/bid/75602/Understanding-Key-Differences-Between-FTP-FTPS-and-SFTP http://southrivertech.com/whats-difference-ftp-sftp-ftps/ http://askubuntu.com/questions/697439/how-to-connect-to-sftp-in-filezilla-using-private-key |
Useful links:
https://github.com/liviubalan/liviubalan.com-vagrant-ubuntu
https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
http://www.jscape.com/blog/bid/75602/Understanding-Key-Differences-Between-FTP-FTPS-and-SFTP
http://southrivertech.com/whats-difference-ftp-sftp-ftps/
http://askubuntu.com/questions/697439/how-to-connect-to-sftp-in-filezilla-using-private-key