<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#!SUITS &#187; ssh</title>
	<atom:link href="http://suits.it.usyd.edu.au/wordpress/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://suits.it.usyd.edu.au/wordpress</link>
	<description>Sydney University IT Society</description>
	<lastBuildDate>Sun, 18 Oct 2009 14:50:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>USYD Wireless is coming to SIT</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/08/25/usyd-wireless-is-coming-to-sit/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/08/25/usyd-wireless-is-coming-to-sit/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 08:52:33 +0000</pubDate>
		<dc:creator>Edmund Tse</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[SIT]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ucc]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=222</guid>
		<description><![CDATA[Recently, some white squarish objects that have been installed on the walls around School of IT. In case you&#8217;re wondering what they are, they&#8217;re actually Cisco wireless access points that&#8217;s connected to the university network. This means, anyone with a UniKey account will be able to access the internet while connected.
So far I&#8217;ve spotted 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, some white squarish objects that have been installed on the walls around School of IT. In case you&#8217;re wondering what they are, they&#8217;re actually Cisco wireless access points that&#8217;s connected to the university network. This means, anyone with a UniKey account will be able to access the internet while connected.</p>
<p>So far I&#8217;ve spotted 2 APs in the Masters area, and another AP in the SIT lecture theatre. All you have to do is to find the access point (named &#8220;usyd&#8221;), and connect to it. Then, you can connect to the internet via VPN or SSH, just follow our <a href="/wordpress/tutorials/">tutorials</a>.</p>
<p>ET</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/08/25/usyd-wireless-is-coming-to-sit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: SIT &#8211; SFTP</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/04/18/tutorial-sit-sftp/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/04/18/tutorial-sit-sftp/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 07:40:37 +0000</pubDate>
		<dc:creator>Chris Leong</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[SIT]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=54</guid>
		<description><![CDATA[Instructions on how to access the files in your SIT home directory from your own computer.

You will need an SFTP client.
Windows: FileZilla
Mac OSX: Cyberduck
All Linux distros should be able to connect by SFTP without additional software. Try typing sftp://user@host into the location bar of the file manager.
Connnect using
Host: ftp.ug.it.usyd.edu.au
Username Your SIT username
Password: Your SIT password
Port: [...]]]></description>
			<content:encoded><![CDATA[<p>Instructions on how to access the files in your SIT home directory from your own computer.</p>
<p><span id="more-54"></span></p>
<p>You will need an SFTP client.</p>
<p>Windows: <a href="http://filezilla-project.org/">FileZilla</a></p>
<p>Mac OSX: <a href="http://cyberduck.ch/">Cyberduck</a></p>
<p>All Linux distros should be able to connect by SFTP without additional software. Try typing sftp://user@host into the location bar of the file manager.<br />
Connnect using</p>
<pre>Host: ftp.ug.it.usyd.edu.au
Username Your SIT username
Password: Your SIT password
Port: 22
Protocol: SFTP</pre>
<p>Make sure you connect using SFTP (port 22) rather than FTP (port 21). FTP is very insecure and will transmit your username and password unencrypted over the network.</p>
<p>With any of the above clients you should be able to bookmark the URL so you don&#8217;t have to type the hostname every time. Once again, make sure you choose SFTP for security. You can optionally save the password locally.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/04/18/tutorial-sit-sftp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: SSH using PuTTY</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 07:35:14 +0000</pubDate>
		<dc:creator>Edmund Tse</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=21</guid>
		<description><![CDATA[PuTTY is a program that allows you to use ssh on Windows. It has all the features of the Unix OpenSSH, and is an essential piece of software for any Windows user.

The instructions in the SSH Tutorial are for use within any unix environment. It&#8217;s a good idea to read this anyway, as chances are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a program that allows you to use ssh on Windows. It has all the features of the Unix OpenSSH, and is an essential piece of software for any Windows user.</p>
<p><span id="more-21"></span></p>
<p>The instructions in the <a title="SSH Tutorial" href="/wordpress/2007/04/17/tutorial-ssh">SSH Tutorial</a> are for use within any unix environment. It&#8217;s a good idea to read this anyway, as chances are you&#8217;ll be logging in to a Unix SSH server.</p>
<h3>SSH Public/Private Keys</h3>
<p>In a standard installation of PuTTY, there is a tool named PuTTYgen. This is the alternative tool to the Unix ssh-keygen command which generates a public/private key pair.</p>
<h4>Generating the public/private key pair</h4>
<p>When PuTTYgen is run, you will be presented with a dialog box that asks you to move your mouse over the it to generate some randomness. All you need to do at this stage is move your mouse so that the cursor moves over the dialog box. Continue to move the cursor until the progress bar reaches 100%.</p>
<p>Afterwards, click on the &#8220;Save private key&#8221; button to output your private key to a .ppk file. Store this file in a safe location on your computer. Click on the &#8220;Save public key&#8221; button to output your public key to file. The contents of this file is equivalent to the id_rsa.pub file generated using ssh-keygen, which should be appended to the ~/.ssh/authorized_keys file on the SSH server.</p>
<h4>Using the key/pair</h4>
<p>To use a generated key pair when you connect to a server, you will need to reference the private key (.ppk file) when you configure the PuTTY SSH session.</p>
<p>Starting PuTTY, you will see a hierarchy of settings on the left hand side of the window. The settings page that we are concerned with is located under Connection &gt; SSH &gt; Auth. When you have selected &#8220;Auth&#8221;, you will notice that the settings page on the right hand side will change. Click on the &#8220;Browse&#8221; button for &#8220;Private key file for authentication&#8221;, then locate and select the .ppk file you have generated earlier. After the key is selected, your connection to the server will then attempt the public/private key authentication method.</p>
<p>Optionally, you may provide a default username to enter when you connect to the server under &#8220;Login details&#8221; on the page at Connection &gt; Data.</p>
<h3>Web Proxy Port Forwarding</h3>
<p>See the background information on the <a title="SSH Port Forwarding" href="/wordpress/2007/12/04/tutorial-ssh-port-forwarding">SSH Port Forwarding</a>.</p>
<p>Choose a host to connect to using SSH, e.g. congo1.ug.it.usyd.edu.au (or just congo1) on the standard port 22.</p>
<p>Go to Connection-&gt;SSH-&gt;Tunnels and set: Source port: 8000 Destination www-cache.it.usyd.edu.au:8000 Don&#8217;t forget to click add!</p>
<p>Click open at the bottom to start the connection. Now you can set your browser to proxy through localhost:8000 and it&#8217;ll go through the SIT web cache.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2008/03/02/tutorial-ssh-using-putty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: SSH Port Forwarding</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 07:34:30 +0000</pubDate>
		<dc:creator>James Bunton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ucc]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=20</guid>
		<description><![CDATA[This describes how to use an SSH tunnel to access web sites from the UCC (University Computing Centre) wireless network. This is what you want to read if youâ€™re an SIT student and you want internet access from your laptop in Wentworth, etc.

Please read this page in it&#8217;s entirety. It&#8217;s very useful to understand how [...]]]></description>
			<content:encoded><![CDATA[<p>This describes how to use an SSH tunnel to access web sites from the UCC (University Computing Centre) wireless network. This is what you want to read if youâ€™re an SIT student and you want internet access from your laptop in Wentworth, etc.</p>
<p><span id="more-20"></span></p>
<p>Please read this page in it&#8217;s entirety. It&#8217;s very useful to understand how these techniques work.</p>
<h3>Background</h3>
<p>SIT means School of Information Technologies. This tutorial will only be useful if you&#8217;re an SIT student. UCC means University Computing Centre. They do lots of things, including supplying wireless networks for people to connect to throughout the university.</p>
<p>If you connect to a wireless network in a building like Wentworth, chances are it&#8217;s the UCC network. They supply a rather annoying (to me) VPN client which you&#8217;re supposed to use to access external sites through their wireless.</p>
<p>A proxy, for our purposes, means a computer that has greater network access than you, and can make requests on your behalf and return the result.</p>
<h3>Procedure</h3>
<p>The UCC wireless gives you limited connectivity without their VPN client. Thankfully this connectivity includes the ability to SSH to computers on the SIT network.</p>
<p>The SIT runs a web proxy, which requires an SIT username/password and allows access to web pages on the internet. The server is www-cache.it.usyd.edu.au and runs on port 8000. These are the settings you use when you&#8217;re directly connected to the SIT network, eg using a computer in the labs.</p>
<p>Note that your SIT internet quota is separate and in addition to your UCC quota. So if you&#8217;ve run out of your SIT web quota, you can still connect to the internet using VPN, and keep surfing the net with your UCC internet quota.</p>
<p>You cannot connect directly to the SIT web proxy from the wireless, and you cannot SSH directly to the SIT web proxy. However you can SSH to one of the congos, say congo1. SSH has a nice feature called TCP tunneling. Basically what it does is allow you to forward connections to a port on your computer (localhost) to a port on a remote computer, through an SSH connection. Here&#8217;s a diagram:</p>
<p>You connect to congo1 from your laptop.</p>
<pre>[laptop]  &lt;-ssh connection-&gt;  [congo1]</pre>
<p>You want to use congo1 as a proxy to connect to the SIT web proxy. Nice eh?</p>
<pre>         (forwarded connection
          piggybacks over SSH)
[laptop]  &lt;-ssh connection-&gt;  [congo1]
                                | (forwarded connection)
             [www-cache.it.usyd.edu.au]</pre>
<h3>Details</h3>
<p>Individual forwarding command:<br />
<code><br />
ssh -L 1234:desthost:4321 userXYXY@proxyhost</p>
<ul>
<li> The -L means enable port forwarding.</li>
<li> The first port number is the port to listen to on the machine you're running the SSH client on.</li>
<li> The second field and third fields specify the host and port which you want your connection to end up at. This is from the perspective of the machine you're SSHing to.</li>
<li> The last parameter is the username@host of the computer you want to SSH to, the one doing the forwarding.</li>
</ul>
<p>The end result, is that if you connect to localhost:1234 on your machine locally, then it gets forwarded through proxyhost to port 4321 on desthost.</p>
<h3>Web Proxy Quick HOWTO</h3>
<p>To set this up, you run one command. See above for details on the options.<br />
</code><code>ssh -L 8000:www-cache.it.usyd.edu.au:8000 userXXXX@congo1.ug.it.usyd.edu.au</code><br />
Now you have an SSH tunnel. Whenever you connect to localhost:8000 the connection will be forwarded through congo1 to www-cache.it.usyd.edu.au:8000</p>
<p>So you need to configure your web browser to use as the proxy: Host: localhost Port: 8000</p>
<p>This can be simplified by using the ssh config file (see <a href="http://suits.it.usyd.edu.au/wordpress/2007/04/17/tutorial-ssh/">see SUITS tutorial</a>) instead of typing out this long command.<br />
<code><br />
Host sitproxy<br />
&nbsp;&nbsp;&nbsp;&nbsp;HostName congo1.ug.it.usyd.edu.au<br />
&nbsp;&nbsp;&nbsp;&nbsp;User userXXXX<br />
&nbsp;&nbsp;&nbsp;&nbsp;LocalForward 8000 www-cache.it.usyd.edu.au:8000<br />
</code><br />
Which can then be used via<br />
<code><br />
$ ssh sitproxy<br />
</code></p>
<h3>Jabber (Google Talk) Quick HOWTO</h3>
<p>The SIT network allows unproxied outgoing connections on port 443 to all hosts. This port is usually used for HTTPS, that&#8217;s secure HTTP. Many Jabber servers (google talk, jabber.org.au) also listen on this port.</p>
<p>You can take advantage of this by proxying your Jabber connections from the UCC wireless through one of the congos. Run this command for google talk, or modify it as appropriate for your Jabber server.</p>
<pre>ssh -L 5222:talk.google.com:443 userXXXX@congo1.ug.it.usyd.edu.au</pre>
<p>Then go into your Jabber client and set it to connect to a specific host/port. Host: localhost Port: 5222</p>
<h3>Postgrad Account</h3>
<p>For those with a postgraduate account, you can connect through a postgraduate server, avoiding the proxy/download limit issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2007/12/04/tutorial-ssh-port-forwarding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial: SSH</title>
		<link>http://suits.it.usyd.edu.au/wordpress/2007/04/17/tutorial-ssh/</link>
		<comments>http://suits.it.usyd.edu.au/wordpress/2007/04/17/tutorial-ssh/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 07:33:34 +0000</pubDate>
		<dc:creator>James Bunton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://suits.it.usyd.edu.au/wordpress/?p=19</guid>
		<description><![CDATA[SSH is a program used to connect to remote machines securely. One of its main uses to you will be to login to the School of IT computers from home to access files. You can set up private/public keypairs to allow logins without a password. It also is able to forward TCP tunnels between remote [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://openssh.org/">SSH</a> is a program used to connect to remote machines securely. One of its main uses to you will be to login to the School of IT computers from home to access files. You can set up private/public keypairs to allow logins without a password. It also is able to forward TCP tunnels between remote machines for port forwarding. All data is transmitted securely through the encrypted connection.</p>
<p><span id="more-19"></span></p>
<p>This page documents the <a href="http://www.openssh.org/">OpenSSH</a> software installed by default on almost all Unix operating systems. Including Linux and Mac OS X. Please see <a title="SSH PuTTY" href="/wordpress/2008/03/02/tutorial-ssh-using-putty">SSH PuTTY</a> for information on using SSH on Windows.</p>
<h3>Connecting to a remote host</h3>
<p>To connect to a host, say congo1.ug.it.usyd.edu.au on the SIT network, you can type a command like this:<br />
<code>$ ssh user1111@congo1.ug.it.usyd.edu.au</code></p>
<p>Since the server is in the School of IT, locally the command:</p>
<p>$ ssh user1111@congo1 also works</p>
<p>It is also possible to implicitly specify the username. Eg, if the account you&#8217;re logged in to at the moment has the username userXYXY, then typing these two commands are equivalent:<br />
<code><br />
$ ssh userXYXY@host<br />
$ ssh host</code></p>
<p>You can type exit to end this effect.</p>
<h3>SSH Public/Private Keys</h3>
<h4>Basic Principles</h4>
<p>You generate a public/private keypair. The private key, as its name suggests, should remain on your computer, and not be shared with anybody. Your public key can be given to other people. Anybody who has your public key can encrypt a message such that it can only be decrypted using the matching private key. You can trust that this works.</p>
<p>For a more thorough explanation, see the Wikipedia article: <a href="http://en.wikipedia.org/wiki/Public-key_cryptography">Public-Key Cryptography</a></p>
<h4>Generating a public/private key pair</h4>
<p>What does this have to do with SSH? Well, for each computer account you have, you create a public/private key pair. Do that with this command:<br />
<code>$ ssh-keygen -t rsa -b 4096</code><br />
That means create a 4096 bit RSA key. Answer yes to all the prompts. I generally don&#8217;t bother setting a passphrase. This will then mean you end up with these two files:<br />
<code><br />
~/.ssh/id_rsa       # Private key<br />
~/.ssh/id_rsa.pub   # Public key<br />
</code></p>
<h4>Using the key pair</h4>
<p>You now need to create a file called ~/.ssh/authorized_keys. In this file you put a list of the public keys that are authorised to connect to this account without a password.</p>
<p>Example: On your home machine, create a public/private keypair. Log in to your account on the SIT machines and create a file called<br />
<code>~/.ssh/authorized_keys</code><br />
You may need to create the directory ~/.ssh first. Note that ~ (tilde) means your home directory. Put the contents of the public key you created on your home machine into the authorized_keys file on the SIT machines.</p>
<p>Now you can connect to the school computers without a password.</p>
<h3>SSH Config File</h3>
<p>There&#8217;s a wonderful file that few people use: ~/.ssh/config</p>
<p>You can look up documentation for it in the manpage ssh_config. Here are some examples of things that can go in there:<br />
<code><br />
# This is a useful rule that lets you log in to congo1 by just typing<br />
# $ ssh congo1<br />
# instead of<br />
# $ ssh userXXXX@congo1.ug.it.usyd.edu.au<br />
Host congo1<br />
&nbsp;&nbsp;&nbsp;&nbsp;User userXXXX<br />
&nbsp;&nbsp;&nbsp;&nbsp;HostName congo1.ug.it.usyd.edu.au</p>
<p># Another useful rule for setting up X11 forwarding<br />
Host ugrad<br />
&nbsp;&nbsp;&nbsp;&nbsp;HostName congo1.ug.it.usyd.edu.au<br />
&nbsp;&nbsp;&nbsp;&nbsp;User userXXXX<br />
&nbsp;&nbsp;&nbsp;&nbsp;ForwardX11 yes<br />
</code></p>
<p>Once you have an alias like <em>congo1</em>setup, this alias can be used in <em>scp</em> too. For example, to copy a file called <em>foo</em> from userXXXX&#8217;s home directory into the local <em>/tmp</em> directory:<br />
<code><br />
$ scp congo1:~/foo /tmp/<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://suits.it.usyd.edu.au/wordpress/2007/04/17/tutorial-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
