-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
67 lines (65 loc) · 3.4 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>
<channel>
<atom:link href='http://prees1.github.io' rel='self' type='application/rss+xml'/>
<title>
Phil Rees
</title>
<link>
http://prees1.github.io
</link>
<description>
A place for my tinkering and exploration.
</description>
<lastBuildDate>
Fri, 18 Mar 2016 23:50:15 -0400
</lastBuildDate>
<generator>
clj-rss
</generator>
<item>
<guid>
http://prees1.github.io/posts-output/2016-01-21-ssh.html
</guid>
<link>
http://prees1.github.io/posts-output/2016-01-21-ssh.html
</link>
<title>
SSH time saver
</title>
<description>
<p>If you use SSH frequently then this might be useful. And if you use ssh infrequently then this might be even more useful. SSH is one of the most common ways to get access to a unix based server. If you are in IT or development you likely have access to several servers that all have their own dedicated functions. On top of that, a lot of servers you use might not be under a DNS and their is no convient domain name to use when logging in; instead there is just an IP.</p><p>If you are comfortable on the linux cli you have likely come across how to make and add aliases to your environment. This is one way to save your credientials. For example adding this:</p><pre><code>alias ll='ls -al'
alias myserver='ssh [email protected]'
</code></pre>to your bashrc file (<code>&#126;/.bashrc</code>) will let you log into this server by just typing <code>myserver</code>.<p>The first alias here shows how you can alias any command. The second here we have alias <code>myserver</code> to now execute the following command and therefore log us in via ssh.</p><p>This works well for a lot of bash commands and even ssh commands. However once you have a lot of ssh options and parameters it can become a bit unwieldy.</p><h3><a name="ssh&#95;config"></a>SSH Config</h3><p>The solution is simple. This file <code>&#126;/.ssh/config</code> can store all our connections and settings. Here is how:</p><pre><code>Host prod
HostName myserver
Port 22
User root
</code></pre><p>Now we can reference the name of our host to login: <code>ssh prod</code> and we should be logged in.</p><h3><a name="even&#95;more"></a>Even more</h3>There is a lot more you can do with a ssh config file. This is just the basics. To get more I would suggest you checkout the man pages for ssh_config <code>man ssh&#95;config</code>.
</description>
<enclosure>
</enclosure>
<pubDate>
Thu, 21 Jan 2016 00:00:00 -0500
</pubDate>
</item>
<item>
<guid>
http://prees1.github.io/posts-output/2016-01-07-first.html
</guid>
<link>
http://prees1.github.io/posts-output/2016-01-07-first.html
</link>
<title>
First post
</title>
<description>
<p>Setup <a href='http://cryogenweb.org'>Cryogen</a> for a place to share things I come across.</p><p>Let's start with a picture of the Toronto skyline. <a href='https://pixabay.com/en/toronto-canada-skyline-architecture-73508/'><img src="/img/toronto.jpg" alt="Toronto" /></a></p>
</description>
<enclosure>
</enclosure>
<pubDate>
Thu, 07 Jan 2016 00:00:00 -0500
</pubDate>
</item>
</channel>
</rss>