<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_SSH_Shortcuts_Using_SSH_Config</id>
	<title>Creating SSH Shortcuts Using SSH Config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_SSH_Shortcuts_Using_SSH_Config"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;action=history"/>
	<updated>2026-05-06T09:28:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=417&amp;oldid=prev</id>
		<title>Ccn admin: 8 revisions</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=417&amp;oldid=prev"/>
		<updated>2014-01-16T03:13:11Z</updated>

		<summary type="html">&lt;p&gt;8 revisions&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:13, 16 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=416&amp;oldid=prev</id>
		<title>Elau at 20:38, 13 March 2012</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=416&amp;oldid=prev"/>
		<updated>2012-03-13T20:38:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:38, 13 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # Finally, set x11 forwarding to yes if you want gui awesomeness&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  # Finally, set x11 forwarding to yes if you want gui awesomeness&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    ForwardX11 yes&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    ForwardX11 yes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # You don&#039;t want to get logged out automatically just because you aren&#039;t always doing something, so tell the server you&#039;d like it to keep it alive.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; # The numerical argument you give here is how often (in seconds) a ping should be sent to keep the connection open.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   ServerAliveInterval 300&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s it! This should be put in the $HOME/.ssh/config that your logging in &amp;#039;&amp;#039;&amp;#039;from&amp;#039;&amp;#039;&amp;#039;.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s it! This should be put in the $HOME/.ssh/config that your logging in &amp;#039;&amp;#039;&amp;#039;from&amp;#039;&amp;#039;&amp;#039;.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Elau</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=415&amp;oldid=prev</id>
		<title>Elau: Undo revision 2715 by Aenalb (talk)</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Creating_SSH_Shortcuts_Using_SSH_Config&amp;diff=415&amp;oldid=prev"/>
		<updated>2011-07-07T00:27:47Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 2715 by &lt;a href=&quot;/wiki/index.php/Special:Contributions/Aenalb&quot; title=&quot;Special:Contributions/Aenalb&quot;&gt;Aenalb&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:Aenalb&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Aenalb (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SSH Config is a great place to make shortcuts for those long url&amp;#039;s your always typing. In just a few seconds you&amp;#039;ll never have to type: fmri00-silly.ats.long.hosted.domain.name.that.goes.on.forever.com. We&amp;#039;ll take the example of ssh&amp;#039;ing into miles, then into one of the other compute nodes to demonstrate the most awesome power of ssh config. &lt;br /&gt;
&lt;br /&gt;
The ssh config file resides in $HOME/.ssh/config. If it doesn&amp;#039;t exist, just create it. &lt;br /&gt;
&lt;br /&gt;
 $ vim ~/.ssh/config&lt;br /&gt;
&lt;br /&gt;
Of course, you can use any text editor you want except for TextEdit. Because TextEdit is evil. Trust me. Next, we just need to make a few entries:&lt;br /&gt;
&lt;br /&gt;
 # Enter the short name you&amp;#039;d like to use. This is an arbitrary name and can be anything you&amp;#039;d like&lt;br /&gt;
# Here we use miles, but it could be hoffman, work, home, func, or whatever else you&amp;#039;d like&lt;br /&gt;
 Host hoffman&lt;br /&gt;
 # Next, enter the full url to the server you want to log into for the last time! Here we use miles, but it can be any server you&amp;#039;d like to access&lt;br /&gt;
 # such as hoffman2.idre.ucla.edu for hoffman&lt;br /&gt;
   Hostname hoffman2.idre.ucla.edu&lt;br /&gt;
 # Then enter the user name needed to log into this host. foo is just an example, your username is specific to your account&lt;br /&gt;
   User foo&lt;br /&gt;
 # Finally, set x11 forwarding to yes if you want gui awesomeness&lt;br /&gt;
   ForwardX11 yes&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s it! This should be put in the $HOME/.ssh/config that your logging in &amp;#039;&amp;#039;&amp;#039;from&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;Don&amp;#039;t stop reading!&amp;#039;&amp;#039;&amp;#039;&amp;lt;/u&amp;gt; There&amp;#039;s one last thing to do. After editing the file you have to make sure the permissions are right or ssh will refuse to use it. So type this when your done editing:&lt;br /&gt;
&lt;br /&gt;
 $ chmod 600 ~/.ssh/config&lt;br /&gt;
&lt;br /&gt;
After this is done, all that&amp;#039;s needed to ssh into miles from the terminal is:&lt;br /&gt;
 $ ssh miles&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can even copy/paste it if you like. For a full list of all the magical options available in .ssh/config you can check out the /etc/ssh_config or&lt;br /&gt;
 $ man ssh_config&lt;/div&gt;</summary>
		<author><name>Elau</name></author>
	</entry>
</feed>