Showing posts with label sftp. Show all posts
Showing posts with label sftp. Show all posts

Thursday, December 20, 2018

SFTP freeBSD

SFTP port is open by default by AWS. So just log in, and ftp.
# sftp -i "aws-domo.pem" ubuntu@ec2-13-55-197-77.ap-southeast-2.compute.amazonaws.com

Check Present Working Directory from a remote server.
sftp> lpwd
Remote working directory: /tecmint/

Local working directory: 
sftp> pwd

Upload a File
sftp> put local.profile

However, if you don’t plan to use SFTP/SCP to transfer files you should disable it. Do this by commenting out the line that starts with # Subsystem sftp at the bottom of the file.
# ee /etc/ssh/sshd_config

Don't forget: Setting up your router port forwarding to 22
Funny mistake: You need to log in from the outside network to log in with the public IP!