Amazon AWS/EC2: Difference between revisions

From Bibliotheca Anonoma
(Created page with "== Accessing Instance == You must change permissions of the key pair to 400. <pre>chmod 400 /path/my-key-pair.pem ssh -i /path/my-key-pair.pem [email protected]...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
<blockquote>If you compromise your private key everything is f***ed anyway.
<blockquote>If you compromise your private key everything is f***ed anyway.
</blockquote>
</blockquote>
== How to Use Byobu ==


Your shell is equipped with Byobu, which is a nifty shell that allows processes to stay running even if you disconnect. It also allows you to have multiple tabs, a must have when running multiple processes.
== Hostname ==


* <code>F2</code> (New Tab) - Press this button to create a new tab.
Once you get a real domain, you should name your servers with it.
* <code>F3</code> (Switch Tab) - Press this button to toggle between tabs.
* <code>F6</code> (Disconnect) - Press this button to disconnect from the shell. Your programs will still keep running and you can check back on them next time you log in.
* <code>exit</code> - Run the <code>exit</code> command in any tab to close that tab when you no longer need it.


If you are using PuTTY and are facing issues with the function keys, [http://codeyarns.com/2013/01/21/byobu-function-keys-do-not-work-in-putty/ set this up.]
https://aws.amazon.com/premiumsupport/knowledge-center/linux-static-hostname/
 
== Handy Programs ==
 
* [https://pypi.python.org/pypi/internetarchive/ internetarchive Uploader]
* The Internet Archive requires metadata for creating new objects. For now, just create new objects using the web interface and upload a small file.
* Then, upload the real files from the server using:
* <code>ia upload &lt;identifier&gt; file1 file2</code>
* [https://github.com/BASLQC/BASLQC/wiki/Wget Wget] - Wget makes WARCs.


== Sources ==
== Sources ==

Latest revision as of 20:51, 30 January 2018

Accessing Instance[edit]

You must change permissions of the key pair to 400.

chmod 400 /path/my-key-pair.pem
ssh -i /path/my-key-pair.pem [email protected]

Accessing Instances in Linux

Add Users[edit]

http://stackoverflow.com/questions/3260739/add-keypair-to-existing-ec2-instance

pam_ssh[edit]

Another handy thing to do is single-sign on. Now that you've authenticated once with your SSH private key, you might as well have it authenticate the password anyway, so you don't have to type it in yet again for sudo.

If you compromise your private key everything is f***ed anyway.

Hostname[edit]

Once you get a real domain, you should name your servers with it.

https://aws.amazon.com/premiumsupport/knowledge-center/linux-static-hostname/

Sources[edit]