ssh config post

This commit is contained in:
Ben Harris 2018-01-12 13:30:41 -05:00
parent 43c0c26b7b
commit 06279b7017
10 changed files with 322 additions and 33 deletions

Binary file not shown.

Binary file not shown.

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; All posts' />
<meta name='twitter:description' content="All posts January 2018 cold &mdash; January 05, 2018 8values &mdash; January 03, 2018 December 2017 mastodon &mdash; December 22, 2017 loading... &mdash; December 21, 2017 vr &mdash; December 18, 2017 net neutrality vote today &mdash; December 14," />
<meta name='twitter:description' content="All posts January 2018 git remotes with ssh aliases &mdash; January 12, 2018 cold &mdash; January 05, 2018 8values &mdash; January 03, 2018 December 2017 mastodon &mdash; December 22, 2017 loading... &mdash; December 21, 2017 vr &mdash; December 1" />
</head><body>
<div class="container">
@ -27,6 +27,7 @@
<h3>All posts</h3>
<h4 class='allposts_header'>January 2018</h4>
<ul>
<li><a href="./git-remotes-with-ssh-aliases.html">git remotes with ssh aliases</a> &mdash; January 12, 2018</li>
<li><a href="./cold.html">cold</a> &mdash; January 05, 2018</li>
<li><a href="./8values.html">8values</a> &mdash; January 03, 2018</li>
</ul>

View File

@ -38,6 +38,7 @@
<li><a href="tag_drone.html">drone</a> &mdash; 1 post</li>
<li><a href="tag_gaming.html">gaming</a> &mdash; 1 post</li>
<li><a href="tag_german.html">german</a> &mdash; 3 posts</li>
<li><a href="tag_git.html">git</a> &mdash; 1 post</li>
<li><a href="tag_gtx1080ti.html">gtx1080ti</a> &mdash; 1 post</li>
<li><a href="tag_heyderebub.html">heyderebub</a> &mdash; 1 post</li>
<li><a href="tag_hhgtg.html">hhgtg</a> &mdash; 1 post</li>
@ -63,6 +64,7 @@
<li><a href="tag_snow.html">snow</a> &mdash; 1 post</li>
<li><a href="tag_social.html">social</a> &mdash; 1 post</li>
<li><a href="tag_social-networks.html">social-networks</a> &mdash; 1 post</li>
<li><a href="tag_ssh.html">ssh</a> &mdash; 1 post</li>
<li><a href="tag_sysadmin.html">sysadmin</a> &mdash; 1 post</li>
<li><a href="tag_thought-of-the-day.html">thought-of-the-day</a> &mdash; 5 posts</li>
<li><a href="tag_tilde.html">tilde</a> &mdash; 2 posts</li>

View File

@ -2,10 +2,46 @@
<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>Mon, 08 Jan 2018 16:18:51 -0500</lastBuildDate>
<pubDate>Mon, 08 Jan 2018 16:18:51 -0500</pubDate>
<lastBuildDate>Fri, 12 Jan 2018 13:30:28 -0500</lastBuildDate>
<pubDate>Fri, 12 Jan 2018 13:30:28 -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
</title><description><![CDATA[
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
<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>
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>
<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>
]]></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>
<pubDate>Fri, 12 Jan 2018 13:30:26 -0500</pubDate></item>
<item><title>
cold
</title><description><![CDATA[

View File

@ -0,0 +1,72 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/css/hacker.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>git remotes with ssh aliases</title>
<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" />
</head><body>
<div class="container">
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://tilde.team/~ben/blog/index.html">blog~ben@tilde.team</a></h1>
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<!-- entry begin -->
<h3><a class="ablack" href="git-remotes-with-ssh-aliases.html">
git remotes with ssh aliases
</a></h3>
<!-- bashblog_timestamp: #201801121330.26# -->
<div class="subtitle">January 12, 2018 &mdash;
ben
</div>
<!-- text begin -->
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
<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>
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>
<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>
<!-- 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/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
</div>
<br>
</body></html>

View File

@ -0,0 +1,30 @@
git remotes with ssh aliases
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 much shorter and easier to type many times!
`git clone gh:benharri/learngit`
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.
```
Host tilde
HostName tilde.team
User ben
```
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!
Tags: git, ssh

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=" cold January 05, 2018 &mdash; ben why is it so cold i'm so done with winter Comments? Tweet &nbsp; 8values January 03, 2018 &mdash; ben not that i'm very surprised by this, but i took the quiz again (after losing my results url) a" />
<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:image' content='https://tilde.zone/photos/Screenshot_20180105-094720.png' />
</head><body>
<div class="container">
@ -25,6 +25,43 @@
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3><a class="ablack" href="git-remotes-with-ssh-aliases.html">
git remotes with ssh aliases
</a></h3>
<!-- bashblog_timestamp: #201801121330.26# -->
<div class="subtitle">January 12, 2018 &mdash;
ben
</div>
<!-- text begin -->
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
<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>
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>
<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>
<h3><a class="ablack" href="cold.html">
cold
</a></h3>
@ -265,35 +302,6 @@ ben
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/pan-galactic-gargle-blaster.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/pan-galactic-gargle-blaster.html'><span id='count-13594'></span></a>&nbsp;</p>
<h3><a class="ablack" href="dont-be-a-coconut.html">
don't be a coconut
</a></h3>
<!-- bashblog_timestamp: #201712051325.47# -->
<div class="subtitle">December 05, 2017 &mdash;
ben
</div>
<!-- text begin -->
<blockquote>
<p>i've got nothing to say
don't be a coconut</p>
</blockquote>
<p>Ask Me Anything - The Strokes (on First Impressions of Earth)</p>
<p>Tags: <a href='tag_music.html'>music</a>, <a href='tag_lyrics.html'>lyrics</a>, <a href='tag_words.html'>words</a></p>
<!-- text end -->
<p id='twitter'><a href='http://twitter.com/intent/tweet?url=https://tilde.team/~ben/blog/dont-be-a-coconut.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/dont-be-a-coconut.html'><span id='count-30689'></span></a>&nbsp;</p>
<div id="all_posts"><a href="all_posts.html">View more posts</a> &mdash; <a href="all_tags.html">All tags</a> &mdash; <a href="feed.rss">Subscribe</a></div>
</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/>

70
blog/tag_git.html Normal file
View File

@ -0,0 +1,70 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/css/hacker.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>blog~ben@tilde.team &mdash; Posts tagged "git"</title>
<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 " />
</head><body>
<div class="container">
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://tilde.team/~ben/blog/index.html">blog~ben@tilde.team</a></h1>
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3><a class="ablack" href="git-remotes-with-ssh-aliases.html">
git remotes with ssh aliases
</a></h3>
<!-- bashblog_timestamp: #201801121330.26# -->
<div class="subtitle">January 12, 2018 &mdash;
ben
</div>
<!-- text begin -->
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
<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>
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>
<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>
</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>
</div></div>
</div>
<br>
</body></html>

70
blog/tag_ssh.html Normal file
View File

@ -0,0 +1,70 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="/css/hacker.css">
<link rel="stylesheet" href="extra.css">
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>blog~ben@tilde.team &mdash; Posts tagged "ssh"</title>
<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 " />
</head><body>
<div class="container">
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://tilde.team/~ben/blog/index.html">blog~ben@tilde.team</a></h1>
<div id="description">a blog about tildes and other things</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3><a class="ablack" href="git-remotes-with-ssh-aliases.html">
git remotes with ssh aliases
</a></h3>
<!-- bashblog_timestamp: #201801121330.26# -->
<div class="subtitle">January 12, 2018 &mdash;
ben
</div>
<!-- text begin -->
<p>did you know that <code>~/.ssh/config</code> aliases work for git remotes??</p>
<p>~/.ssh/config
<code>
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/gh_key.pub
</code></p>
<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>
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>
<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>
</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>
</div></div>
</div>
<br>
</body></html>