<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://alykhan.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://alykhan.com/" rel="alternate" type="text/html" /><updated>2021-02-28T01:22:04+00:00</updated><id>https://alykhan.com/feed.xml</id><title type="html">Alykhan Kanji</title><subtitle>The website of Alykhan Kanji. See Alykhan's social media profiles and professional portfolio.</subtitle><entry><title type="html">SSH Configuration</title><link href="https://alykhan.com/blog/2015/07/16/ssh-configuration/" rel="alternate" type="text/html" title="SSH Configuration" /><published>2015-07-16T00:00:00+00:00</published><updated>2015-07-16T00:00:00+00:00</updated><id>https://alykhan.com/blog/2015/07/16/ssh-configuration</id><content type="html" xml:base="https://alykhan.com/blog/2015/07/16/ssh-configuration/">&lt;p&gt;If you use &lt;a href=&quot;http://www.openssh.com&quot;&gt;OpenSSH&lt;/a&gt; to connect to &lt;a href=&quot;https://tools.ietf.org/html/rfc4251&quot;&gt;SSH&lt;/a&gt; servers on a regular basis, you may benefit from using an &lt;a href=&quot;http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/ssh_config.5&quot;&gt;SSH configuration file&lt;/a&gt;. This will help you to shorten long commands:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ssh &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; 2222 alykhan@student.cs.uwaterloo.ca
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;into an easily customizable shortcut:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ssh cs
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is accomplished by creating a text file located at &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/config&lt;/code&gt; on your local machine with a few pieces of information and ensuring a specific set of permissions are applied to that file.&lt;/p&gt;

&lt;h2 id=&quot;setup-instructions&quot;&gt;Setup Instructions&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Make the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/&lt;/code&gt; directory if it does not already exist:&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;mkdir&lt;/span&gt; ~/.ssh/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Set the &lt;a href=&quot;https://en.wikipedia.org/wiki/File_system_permissions#Symbolic_notation&quot;&gt;permissions&lt;/a&gt; for the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/&lt;/code&gt; directory such that it is readable, writeable, and executable for &lt;strong&gt;only&lt;/strong&gt; the current user (i.e. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rwx------&lt;/code&gt;):&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;700 ~/.ssh/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Create a text file at &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/config&lt;/code&gt; following this example format:&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Host cs
    HostName student.cs.uwaterloo.ca
    User alykhan
    Port 2222
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note that this file must also meet specific permissions requirements as specified by the &lt;a href=&quot;http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/ssh_config.5&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh_config&lt;/code&gt; man page&lt;/a&gt; (i.e. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rw-------&lt;/code&gt;):&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.ssh/config&lt;/code&gt; — Because of the potential for abuse, this file must have strict permissions: read/write for the user, and not accessible by others.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;600 ~/.ssh/config
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;/h2&gt;

&lt;p&gt;Congratulations! You may now connect to the SSH host via:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ssh cs
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Feel free to add multiple &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Host&lt;/code&gt; entries to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;config&lt;/code&gt; file, to have quick access to different &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HostNames&lt;/code&gt; via shortcuts like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh website&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh work&lt;/code&gt;, etc. Each of these entries may also have different &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;User&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Port&lt;/code&gt;, and other configuration values.&lt;/p&gt;</content><author><name></name></author><category term="secure-shell" /><category term="devops" /><summary type="html">If you use OpenSSH to connect to SSH servers on a regular basis, you may benefit from using an SSH configuration file. This will help you to shorten long commands:</summary></entry><entry><title type="html">Friendly UW Email Addresses</title><link href="https://alykhan.com/blog/2014/09/19/friendly-uw-email-addresses/" rel="alternate" type="text/html" title="Friendly UW Email Addresses" /><published>2014-09-19T00:00:00+00:00</published><updated>2014-09-19T00:00:00+00:00</updated><id>https://alykhan.com/blog/2014/09/19/friendly-uw-email-addresses</id><content type="html" xml:base="https://alykhan.com/blog/2014/09/19/friendly-uw-email-addresses/">&lt;p&gt;If you have a number in your University of Waterloo email address (e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;j9smith@uwaterloo.ca&lt;/code&gt;), log in to &lt;a href=&quot;https://watiam.uwaterloo.ca/idm/user/&quot;&gt;WatIAM&lt;/a&gt;, navigate to “Update Profile”, switch to the “Email Configuration” tab, and check if you have a “Friendly email address” available to you. You may be able to claim the alias for your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;firstname.lastname&lt;/code&gt; (e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;john.smith@uwaterloo.ca&lt;/code&gt;)!&lt;/p&gt;</content><author><name></name></author><category term="email" /><category term="university-of-waterloo" /><summary type="html">If you have a number in your University of Waterloo email address (e.g. j9smith@uwaterloo.ca), log in to WatIAM, navigate to “Update Profile”, switch to the “Email Configuration” tab, and check if you have a “Friendly email address” available to you. You may be able to claim the alias for your firstname.lastname (e.g. john.smith@uwaterloo.ca)!</summary></entry><entry><title type="html">Learning by Struggling</title><link href="https://alykhan.com/blog/2014/08/28/learning-by-struggling/" rel="alternate" type="text/html" title="Learning by Struggling" /><published>2014-08-28T00:00:00+00:00</published><updated>2014-08-28T00:00:00+00:00</updated><id>https://alykhan.com/blog/2014/08/28/learning-by-struggling</id><content type="html" xml:base="https://alykhan.com/blog/2014/08/28/learning-by-struggling/">&lt;blockquote&gt;
  &lt;p&gt;…praising someone's process (&quot;I really like how you struggled with that problem&quot;) versus praising an innate trait or talent (&quot;You're so clever!&quot;) is one way to reinforce a growth ­mindset with someone. Process­ praise acknowledges the effort; talent­ praise reinforces the notion that one only succeeds (or doesn't) based on a fixed trait.&lt;/p&gt;
  &lt;footer&gt;
    &lt;cite title=&quot;Huffington Post&quot;&gt;&lt;a href=&quot;http://www.huffingtonpost.com/salman-khan/the-learning-myth-why-ill_b_5691681.html&quot;&gt;The Learning Myth: Why I'll Never Tell My Son He's Smart&lt;/a&gt;&lt;/cite&gt;
  &lt;/footer&gt;
&lt;/blockquote&gt;</content><author><name></name></author><category term="education" /><summary type="html">…praising someone's process (&quot;I really like how you struggled with that problem&quot;) versus praising an innate trait or talent (&quot;You're so clever!&quot;) is one way to reinforce a growth ­mindset with someone. Process­ praise acknowledges the effort; talent­ praise reinforces the notion that one only succeeds (or doesn't) based on a fixed trait. The Learning Myth: Why I'll Never Tell My Son He's Smart</summary></entry><entry><title type="html">Writing an Outstanding Résumé</title><link href="https://alykhan.com/blog/2014/08/27/writing-an-outstanding-resume/" rel="alternate" type="text/html" title="Writing an Outstanding Résumé" /><published>2014-08-27T00:00:00+00:00</published><updated>2014-08-27T00:00:00+00:00</updated><id>https://alykhan.com/blog/2014/08/27/writing-an-outstanding-resume</id><content type="html" xml:base="https://alykhan.com/blog/2014/08/27/writing-an-outstanding-resume/">&lt;blockquote&gt;
  &lt;p&gt;Being strikingly different is sometimes just a matter of doing what everyone ought to do, and then doing it a bit better.&lt;/p&gt;
  &lt;footer&gt;
    &lt;cite title=&quot;Strikingly&quot;&gt;&lt;a href=&quot;http://blog.strikingly.com/tips-and-how-tos/5-ways-make-resume-work/&quot;&gt;How To Write A Resume That Will Take You To The Top&lt;/a&gt;&lt;/cite&gt;
  &lt;/footer&gt;
&lt;/blockquote&gt;</content><author><name></name></author><category term="résumé" /><summary type="html">Being strikingly different is sometimes just a matter of doing what everyone ought to do, and then doing it a bit better. How To Write A Resume That Will Take You To The Top</summary></entry><entry><title type="html">Hello, World!</title><link href="https://alykhan.com/blog/2014/08/26/hello-world/" rel="alternate" type="text/html" title="Hello, World!" /><published>2014-08-26T00:00:00+00:00</published><updated>2014-08-26T00:00:00+00:00</updated><id>https://alykhan.com/blog/2014/08/26/hello-world</id><content type="html" xml:base="https://alykhan.com/blog/2014/08/26/hello-world/">&lt;p&gt;Hello, World!&lt;/p&gt;</content><author><name></name></author><summary type="html">Hello, World!</summary></entry></feed>