Full Transcript

SFTP Secure file transfer protocol **On server** Install vsftpd package : yum insall vsftpd\* Start service : systemctl enable \--now vsftpd Create a directory like this : mkdir --p /test/done Create a user : useradd sftpuser and provide password. Create a group : groupadd sftpgroup Add user...

SFTP Secure file transfer protocol **On server** Install vsftpd package : yum insall vsftpd\* Start service : systemctl enable \--now vsftpd Create a directory like this : mkdir --p /test/done Create a user : useradd sftpuser and provide password. Create a group : groupadd sftpgroup Add user in group : usermod --G sftpgroup sftpuser Change ownership: chown sftpuser:sftpgroup /test/done Change permission : chmod 755 /test/done Visit /etc/ssh/sshd\_config file for alter configuration and changing some directive of jail environment Subsystem sftp internal-sftp Match Group sfgroup ChrootDirectory /test ForceCommand internal-sftp -d /done **On client** Install ftp package : yum install ftp Sftp sftpuser\@server's ip Ls { for looking data of server } Lls { for looking data of local machine } Use command like put and get to upload and download files from /test/done directory.

Use Quizgecko on...
Browser
Browser