fix formatting on ssh config post

This commit is contained in:
Ben Harris 2018-01-12 13:55:38 -05:00
parent 06279b7017
commit 6ff5f36497
7 changed files with 74 additions and 56 deletions

Binary file not shown.

View File

@ -2,8 +2,8 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel><title>blog~ben@tilde.team</title><link>https://tilde.team/~ben/blog/index.html</link>
<description>a blog about tildes and other things</description><language>en</language>
<lastBuildDate>Fri, 12 Jan 2018 13:30:28 -0500</lastBuildDate>
<pubDate>Fri, 12 Jan 2018 13:30:28 -0500</pubDate>
<lastBuildDate>Fri, 12 Jan 2018 13:52:21 -0500</lastBuildDate>
<pubDate>Fri, 12 Jan 2018 13:52:21 -0500</pubDate>
<atom:link href="https://tilde.team/~ben/blog/feed.rss" rel="self" type="application/rss+xml" />
<item><title>
git remotes with ssh aliases
@ -11,32 +11,35 @@ git remotes with ssh aliases
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
<code>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</code>
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a>&nbsp;</p>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a>&nbsp;</p>
]]></description><link>https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html</link>
<guid>https://tilde.team/~ben/blog/./git-remotes-with-ssh-aliases.html</guid>
<dc:creator>ben</dc:creator>

View File

@ -13,7 +13,7 @@
<meta name='twitter:card' content='summary' />
<meta name='twitter:site' content='@nebsirrah' />
<meta name='twitter:title' content='git remotes with ssh aliases' />
<meta name='twitter:description' content=" did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is mu" />
<meta name='twitter:description' content=" did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is much " />
</head><body>
<div class="container">
@ -36,32 +36,35 @@ ben
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
<code>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</code>
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a>&nbsp;</p>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a>&nbsp;</p>
<!-- entry end -->
</div>
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> &mdash; <a href="mailto:ben&#64;tilde&#46;team">ben&#64;tilde&#46;team</a><br/>

View File

@ -4,12 +4,13 @@ did you know that `~/.ssh/config` aliases work for git remotes??
~/.ssh/config
```
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
```
IdentityFile ~/.ssh/gh_key
</pre>
you can now use `gh:username/repo` as the remote in place of `git@github.com:username/repo`, which is much shorter and easier to type many times!
@ -17,11 +18,13 @@ you can now use `gh:username/repo` as the remote in place of `git@github.com:use
there are many other use cases for the `ssh_config` file. for example, here is my config for the tilde machine for easy ssh connections.
```
<pre>
Host tilde
HostName tilde.team
User ben
```
</pre>
then use `ssh tilde` to start a new ssh session. this also works with `scp`: try something like this `scp file.txt tilde:workspace/.` in place of `scp file.txt ben@tilde.team:workspace/.`
the ssh_config file is super useful. check `man ssh_config` for a full list of options!

View File

@ -13,7 +13,7 @@
<meta name='twitter:card' content='summary' />
<meta name='twitter:site' content='@nebsirrah' />
<meta name='twitter:title' content='blog~ben@tilde.team' />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
<meta name='twitter:image' content='https://tilde.zone/photos/Screenshot_20180105-094720.png' />
</head><body>
<div class="container">
@ -36,32 +36,35 @@ ben
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
<code>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</code>
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a>&nbsp;</p>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a>&nbsp;</p>
<h3><a class="ablack" href="cold.html">
cold
</a></h3>

View File

@ -13,7 +13,7 @@
<meta name='twitter:card' content='summary' />
<meta name='twitter:site' content='@nebsirrah' />
<meta name='twitter:title' content='blog~ben@tilde.team &mdash; Posts tagged "git"' />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
</head><body>
<div class="container">
@ -35,32 +35,35 @@ ben
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
<code>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</code>
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a>&nbsp;</p>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a>&nbsp;</p>
</div>
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> &mdash; <a href="mailto:ben&#64;tilde&#46;team">ben&#64;tilde&#46;team</a><br/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>

View File

@ -13,7 +13,7 @@
<meta name='twitter:card' content='summary' />
<meta name='twitter:site' content='@nebsirrah' />
<meta name='twitter:title' content='blog~ben@tilde.team &mdash; Posts tagged "ssh"' />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key.pub you can now use gh:username/repo as " />
<meta name='twitter:description' content=" git remotes with ssh aliases January 12, 2018 &mdash; ben did you know that ~/.ssh/config aliases work for git remotes?? ~/.ssh/config Host gh HostName github.com User git IdentityFile ~/.ssh/gh_key you can now use gh:username/repo as the" />
</head><body>
<div class="container">
@ -35,32 +35,35 @@ ben
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
<p>~/.ssh/config</p>
<pre>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
IdentityFile ~/.ssh/gh_key
</pre>
<p>you can now use <code>gh:username/repo</code> as the remote in place of <code>git@github.com:username/repo</code>, which is much shorter and easier to type many times!</p>
<p><code>git clone gh:benharri/learngit</code></p>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.
<code>
<p>there are many other use cases for the <code>ssh_config</code> file. for example, here is my config for the tilde machine for easy ssh connections.</p>
<pre>
Host tilde
HostName tilde.team
User ben
</code>
then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
</pre>
<p>then use <code>ssh tilde</code> to start a new ssh session. this also works with <code>scp</code>: try something like this <code>scp file.txt tilde:workspace/.</code> in place of <code>scp file.txt ben@tilde.team:workspace/.</code></p>
<p>the ssh_config file is super useful. check <code>man ssh_config</code> for a full list of options!</p>
<p>Tags: <a href='tag_git.html'>git</a>, <a href='tag_ssh.html'>ssh</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html&text=&lt;Type your comment here but please leave the URL so that other people can follow the comments&gt;&via=nebsirrah'>Comments? Tweet</a>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-13615'></span></a>&nbsp;</p>
<a href='https://twitter.com/search?q=https://tilde.team/~ben/blog/git-remotes-with-ssh-aliases.html'><span id='count-16731'></span></a>&nbsp;</p>
</div>
<div id="footer">CC by-nc-nd <a href="https://tilde.team/~ben">ben</a> &mdash; <a href="mailto:ben&#64;tilde&#46;team">ben&#64;tilde&#46;team</a><br/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>