How is SFTP in Amazon EC2 Ubuntu t1.micro instance?

I have an instance of amazon aws t1.micro (Ubuntu) installed. I can use SSH, but I would like to edit the files on it from a local editor (Mac OS X Mountain Lion), probably using TextWrangler or something like that.

How to access files on my ec2 t1.micro ubuntu instance?

TIA
Harshad

+4
source share
2 answers

I really like sshfs. SSHFS allows you to mount a remote file system and display it as a local mount point on the local system.

https://help.ubuntu.com/community/SSHFS

A simple example is: 1. From the client, make sure you have sshfs installed: "sudo apt-get install sshfs" 2. From the client system: "sudo sshfs user @ubuntuServer: / remote / path / local / path -o allow_other"

This will be the installation / remote / path on the ubuntu server in / local / path on your computer. "-o allow_other" says that any user on the client system reads / writes the mount point, assuming that the user "user @" has permissions on the ubuntu server to read / write to "/ remote / path".

+2
source

This does not answer your question, but I need to say: this is a very bad practice.

You must edit locally and then deploy to EC2. From your description, it sounds like you are editing live on what is essentially a production site.

Hop!

+1
source

Source: https://habr.com/ru/post/1495242/


All Articles