Connecting to AWS via SSH Key in Coda 2 for Mac


Convenience of apps with built-in editor and FTP

Server developers connect to a noisy terminal, memorize a bunch of commands without using a mouse, and do everything with Kibdo.

Even the editor vi has to memorize commands or hotkeys for editing. Of course, some people who know me use vi very well, and some people even use vi for Windows for memos and meeting minutes.

I use UltraEditor on Windows with built-in editor and FTP, and on Mac Tail likes

 

coda2

 

I hate CUI where I have to memorize commands on a black screen and hit the keyboard, so it becomes a GUI environment for Unix. X window, and even when I first came to the company to develop a server, I used to edit it with UltraEditor and upload it to ftp and build it on the server. Then I got really scolded by the manager and I had no choice but to code with the vi editor, but I still like the WYSIWYG editor.

 

 

Using SSH keys in Coda 2

I'm thinking of moving my blog hosting. AWS lightsail I set up one instance.
In AWS, you can use the terminator through SSH directly from the browser, but you have to use FTP as well, and copying and pasting from the browser terminal does not work well, so it is convenient to use an application such as Coda or other filezillr that has FTP and editor together.

However, AWS requires using SSH keys for Lightsail or EC2 or SFTP and telnet.

If I download the key and double-click the key on Mac, it usually goes into the keychain, but I get a message saying that this guy doesn't enter the keychain.
All.

made Coda2 How to use panic's ssh-keysThere is this, but it is difficult to understand, so I searched and summarized what I found. There are several methods, and the one that I succeeded is below.

 

1. Download the SSH key

Create a new SSH key or simply AWS own accountYou can download the SSH key given by region from .

2. Copy the .pem file to the ~/.ssh folder

If you click Go - Go to Folder in the Finder menu, an input window appears. Enter ~/.ssh/ here and press Enter to move to the folder.
Copy the downloaded xxx.pem file to this folder.

 

3. Open a terminal and change the file permissions.

chmod 600 <filename including directory>

 

If you type chmod 600 into the terminal, drag the file from the finder and drop it on the terminal, it will automatically enter the file name including the directory.

 

4. Edit the config file in the .ssh folder.

If there is no file named config without extension, create a file in text format and input as follows.

 

Host 1.1.1.1.1 IdentityFile ~/.ssh/LightsailDefaultKey-ap-northeast.pem StrictHostKeyChecking no UserKnownHostsFile /dev/null IdentitiesOnly yes ForwardAgent no
  • host : Enter the static IP of the instance to connect to. If the instance to connect to is changed, only the ip in the host file of the config file needs to be changed.
  • In IdentityFile, write the name of the pem file including the directory.

 

5. Assign ssh key to SFTP of Coda2

When registering the site, enter the server address and user name in the sftp of the server, and without entering the password, click the key icon next to the input window and select the pem file in the ~/.ssh folder.

 

 

You can enter the terminal through ssh without setting up the terminal. At this time, enter only the user name and not the password.

This way you can use sftp or ssh with coda2.







Recommendations





1 If you like the article, please click the heart~ It will be a strength to bloggers (SNS/login/advertising is not related)



Articles you might like







Push-Up Star: Push-Up Counter

Automatic push-up measurement and voice count, various types of push-up measurement and push-up speed analysis, police officers, military fitness test, military academy, student health fitness assessment (POPs), etc. automatically calculated












Add a Comment

Email addresses are not disclosed. Required items *is indicated by

























This posting is part of Coupang Partners' activities, and a certain amount of commission is provided accordingly.