<?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>Imaging and a little bit of OSS &#187; ssh</title>
	<atom:link href="http://nuclear-imaging.info/site_content/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuclear-imaging.info/site_content</link>
	<description>Yet another techno blog</description>
	<lastBuildDate>Wed, 04 Jan 2012 18:29:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>VNC server setup for Ubuntu 11.04 (Natty Narwhal)</title>
		<link>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vnc-server-setup-for-ubuntu-11-04-natty-narwhal</link>
		<comments>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/#comments</comments>
		<pubDate>Thu, 12 May 2011 00:26:07 +0000</pubDate>
		<dc:creator>slash_boot</dc:creator>
				<category><![CDATA[Linux and OSS]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[vnc4server]]></category>
		<category><![CDATA[vncserver]]></category>
		<category><![CDATA[vncviewer]]></category>

		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=375</guid>
		<description><![CDATA[For the first time I was able to get VNC to work with Ubuntu with Gnome session instead of a xterm on gray background. The steps involved were exactly the same as I was following earlier, with one exception: the setup of xstartup in the ~/.vnc folder. For your xstartup file in ~/.vnc (the &#8220;.vnc&#8221; <a href='http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>For the first time I was able to get VNC to work with Ubuntu with  Gnome session instead of a xterm on gray background. The steps involved  were exactly the same as I was following earlier, with one exception:   the setup of xstartup in the ~/.vnc folder.</p>
<blockquote><p>For your xstartup file in ~/.vnc (the &#8220;.vnc&#8221; folder in</p>
<p>your home directory), you need the following:</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>#!/bin/sh</p>
<p># Uncomment the following two lines for normal desktop:</p>
<p># unset SESSION_MANAGER</p>
<p># exec /etc/X11/xinit/xinitrc</p>
<p>[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup</p>
<p>[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources</p>
<p>xsetroot -solid grey</p>
<p>vncconfig -iconic &amp;</p>
<p>xterm -geometry 80&#215;24+10+10 -ls -title &#8220;$VNCDESKTOP Desktop&#8221; &amp;</p>
<p>gnome-session  &amp;</p>
<p># twm &amp;</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>instead of uncommenting the lines as the script suggests, you change  the window manager to gnome-session</p>
<p>make sure restart vnc4server</p>
</blockquote>
<p>The line which got Gnome working was &#8220;gnome-session &amp;&#8221;</p>
<p>========================================</p>
<p>Now for all the steps involved (works in Karmic Koala Alpha 2, Ubuntu  9.10, kernel 2.6.30-10)</p>
<p>1. Install ssh server, ssh client, VNC viewer, VNC server, and xinetd</p>
<blockquote><p>sudo apt-get install openssh-server openssh-client  vnc4server xinetd  vncviewer</p>
</blockquote>
<p>2. Setup the ssh password for your login</p>
<blockquote><p>ssh-keygen</p>
</blockquote>
<p>3. Test out the ssh server by typing in</p>
<blockquote><p>ssh localhost  or ssh your_login@your_ip_address</p>
</blockquote>
<p>4. Then create a vnc password</p>
<blockquote><p>sudo vncpasswd ~/.vncpasswd</p>
</blockquote>
<p>5. Edit the xstartup file in ~/.vnc directory</p>
<blockquote><p>For your xstartup file in ~/.vnc (the &#8220;.vnc&#8221; folder in</p>
<p>your home directory), you need the following:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>#!/bin/sh</p>
<p># Uncomment the following two lines for normal desktop:</p>
<p># unset SESSION_MANAGER</p>
<p># exec /etc/X11/xinit/xinitrc</p>
<p>[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup</p>
<p>[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources</p>
<p>xsetroot -solid grey</p>
<p>vncconfig -iconic &amp;</p>
<p>xterm -geometry 80&#215;24+10+10 -ls -title &#8220;$VNCDESKTOP Desktop&#8221; &amp;</p>
<p>gnome-session &amp;</p>
<p># twm &amp;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</blockquote>
<p>instead of uncommenting the lines as the script suggests, you change  the window manager to gnome-session</p>
<p>6. Create a VNC desktop</p>
<blockquote><p>vnc4server :1 -geometry 1024&#215;768</p>
</blockquote>
<p>7. Then to tunnel into your VNC desktop, first create a SSH tunnel by  logging into SSH with the comand:</p>
<blockquote><p>ssh -L 5901:your_ip_address:5901  your_username@your_ipaddress</p>
</blockquote>
<p>8. Finally, load up your VNC desktop</p>
<blockquote><p>vncviewer localhost:1</p>
</blockquote>
<p>And now you are ready to use connect to your machine remotely and use administer the computer remotely.</p>
<p>P.S: If you are using a firewall (hardware or software, you need to get enable port forwarding and unblock ports 22 and 5900-5999 on the Ubuntu machine to allow SSH and VNC to be accessed.</p>
]]></content:encoded>
			<wfw:commentRss>http://nuclear-imaging.info/site_content/2011/05/11/vnc-server-setup-for-ubuntu-11-04-natty-narwhal/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Reverse SSH tunnel: Home  NAT organizational network</title>
		<link>http://nuclear-imaging.info/site_content/2011/03/17/reverse-ssh-tunnel-home-nat-organizational-network/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reverse-ssh-tunnel-home-nat-organizational-network</link>
		<comments>http://nuclear-imaging.info/site_content/2011/03/17/reverse-ssh-tunnel-home-nat-organizational-network/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 18:13:12 +0000</pubDate>
		<dc:creator>slash_boot</dc:creator>
				<category><![CDATA[Linux and OSS]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[reverse tunnel]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=351</guid>
		<description><![CDATA[On the destination computer type the following command. Replaceing middleuser with your name and replacing middle with the domain of the middle computer. ssh -R 10002:localhost:22 middleuser@middle This will open port 10002 for listening and forward all future connections to port 22 at destination. This connection must remain on the entire time to ensure that <a href='http://nuclear-imaging.info/site_content/2011/03/17/reverse-ssh-tunnel-home-nat-organizational-network/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>On the destination computer type the following command. Replaceing middleuser with your name and replacing middle with the domain of the middle computer.</p>
<blockquote><p>ssh -R 10002:localhost:22 middleuser@middle</p></blockquote>
<p>This will open port 10002 for listening and forward all future connections to port 22 at destination. This connection must remain on the entire time to ensure that you can access your destination computer whenever you want.</p>
<p>Now if sshd is set to use GatewayPorts you should be able to connect with this:</p>
<blockquote><p>ssh destinationuser@middle -p 10002</p></blockquote>
<p>If you are not sure if GatewayPorts is on or you don’t have the access to change it use the following method to connect:</p>
<p>First connect to the middle computer how you would normally.</p>
<blockquote><p>ssh user@middle</p></blockquote>
<p>Then connect to the localhost of the middle computer on port 10002.</p>
<blockquote><p>ssh user@localhost -p 10002</p></blockquote>
<p>Note: The port 10002 is arbitrary you can use any port you want.</p>
<p>You should now be remotely logged into your computer behind the NAT/Firewall. Enjoy.</p>
<p>Content copied from :http://www.marksanborn.net/howto/bypass-firewall-and-nat-with-reverse-ssh-tunnel/</p>
]]></content:encoded>
			<wfw:commentRss>http://nuclear-imaging.info/site_content/2011/03/17/reverse-ssh-tunnel-home-nat-organizational-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED</title>
		<link>http://nuclear-imaging.info/site_content/2009/11/10/warning-remote-host-identification-has-changed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=warning-remote-host-identification-has-changed</link>
		<comments>http://nuclear-imaging.info/site_content/2009/11/10/warning-remote-host-identification-has-changed/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:02:52 +0000</pubDate>
		<dc:creator>slash_boot</dc:creator>
				<category><![CDATA[Linux and OSS]]></category>
		<category><![CDATA[remote host]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=312</guid>
		<description><![CDATA[Sometimes when you change some of the IP settings, or are using a different wireless card on a machine that has been registered with a server, and for many other reasons, you might have encountered a warning which would&#8217;ve looked like this: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE <a href='http://nuclear-imaging.info/site_content/2009/11/10/warning-remote-host-identification-has-changed/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you change some of the IP settings, or are using a different wireless card on a machine that has been registered with a server, and for many other reasons, you might have encountered a warning which would&#8217;ve looked like this:</p>
<blockquote><p>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!  @<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br />
Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br />
It is also possible that the RSA host key has just been changed.<br />
The fingerprint for the RSA key sent by the remote host is<br />
f2:92:1d:da:81:2a:d7:16:0a:48:f0:43:20:1c:f4:b5<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p></blockquote>
<p>The simplest way to deal with this is to remove the ~/.ssh folder, however this clears out all the exchanged keys with all the ssh machines you have ever communicated with. Removing the ~/.ssh folder would mean that each time you reconnect to a SSH server that you have previously connected to, you will have to confirm that the connection is secure and all that.</p>
<p>There is however another simple way to change just the entry for a specific server in question. At the terminal type in -</p>
<blockquote><p>ssh-keygen -R name_of_the_server.com</p></blockquote>
<p>name_of_the_server.com in the above example would need to be replaced by the actual server name that you are trying to connect.</p>
]]></content:encoded>
			<wfw:commentRss>http://nuclear-imaging.info/site_content/2009/11/10/warning-remote-host-identification-has-changed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

