<?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>Tuts4Tech &#187; ssh</title>
	<atom:link href="http://tuts4tech.net/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Grabbing and Sending files and folders over SSH</title>
		<link>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/</link>
		<comments>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 22:54:33 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[pscp]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[sending]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=556</guid>
		<description><![CDATA[SCP allows you to transfer files over ssh between computers Copying to remote machines To copy a file to a remote machine run the following scp ~/file/to/be/transfered username@hostname:~/destinationfolder If you want to copy a directory you would use -r which would look like this scp -r /folder/to/be/transfered username@hostname:/path/to/destination and if you want to specify a [...]]]></description>
			<content:encoded><![CDATA[<p>SCP allows you to transfer files over ssh between computers</p>
<h3>Copying to remote machines</h3>
<p>To copy a file to a remote machine run the following
<pre class="brush: plain;">scp ~/file/to/be/transfered username@hostname:~/destinationfolder</pre>
<p>
If you want to copy a directory you would use -r which would look like this
<pre class="brush: plain;">scp -r  /folder/to/be/transfered username@hostname:/path/to/destination</pre>
<p>
and if you want to specify a SSH port use -P which would look like this
<pre class="brush: plain;">scp -P port-here /file/to/be/transfered username@hostname:/path/to/destination</pre>
<p></p>
<h3>Grabbing from remote machines</h3>
<p>To grab a file from a remote machine you would run the following
<pre class="brush: plain;">scp username@hostname:~/path/to/file/you/want /path/where/you/want/to/save/the/file</pre>
<p>
If you wanted a folder you would use -r which would look like this
<pre class="brush: plain;">scp -r username@hostname:~/path/to/folder/you/want /path/where/you/want/to/save/the/folder</pre>
<p>
and if you wanted to specify a SSH port use -P which would look like this
<pre class="brush: plain;">scp -P port-here username@hostname:~/path/to/file/you/want /path/to/destination</pre>
<p></p>
<h3>Mounting folders over SSH</h3>
<p>Using SSHFS we can mount folders over ssh. To get started you'll need to installl sshfs
<pre class="brush: plain;">apt-get install sshfs</pre>
<p>
Create a dir to mount the files too and give your user ownership over it
<pre class="brush: plain;">mkdir /media/sshmount
chown username /media/sshmount</pre>
<p>
Then add your user to fuse group
<pre class="brush: plain;">adduser username fuse</pre>
<p>
You should be then able to mount using the following command
<pre class="brush: plain;">sshfs username@hostname:/path/to/folder/you/want/to/mount /media/sshmount</pre>
<p></p>
<h3>For Windows Users</h3>
<p>If your on windows and you want to send or grab files over ssh you can using <a href="http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe">pscp</a><br />
To send a file you would run the following
<pre class="brush: plain;">pscp C:\file\to\be\transfered username@hostname:/path/to/destination</pre>
<p>
To grab a file you would run the following
<pre class="brush: plain;">pscp username@hostname:~/path/to/file/you/want C:\path\where\you\want\the\file\saved</pre>
<p>When using pscp the -r switch will work for folders and -P will also work for port</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling SSH on ESXI</title>
		<link>http://tuts4tech.net/2009/07/19/enabling-ssh-on-esxi/</link>
		<comments>http://tuts4tech.net/2009/07/19/enabling-ssh-on-esxi/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 23:01:29 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=507</guid>
		<description><![CDATA[On the console screen press ctrl+alt+f1 Type in unsupported then press enter and then type in your root password, You should know have a console window like the one below Run the following command vi /etc/inetd.config Press the i key and then use the arrow keys until you come down to the line that beings [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>On the console screen press ctrl+alt+f1<br /><img src="http://tuts4tech.net/wp-content/uploads/2009/07/console.jpg" alt="console" title="console" width="500" height="312" class="aligncenter size-full wp-image-509" /></li>
<p></p>
<li>Type in unsupported then press enter and then type in your root password, You should know have a console window like the one below<br /><img src="http://tuts4tech.net/wp-content/uploads/2009/07/loggedin.jpg" alt="loggedin" title="loggedin" width="500" height="312" class="aligncenter size-full wp-image-510" /></li>
<li>Run the following command
<pre class="brush: bash;">vi /etc/inetd.config</pre>
<p>Press the i key and then use the arrow keys until you come down to the line that beings with #ssh remove # then press the esc key followed by :wq</li>
<li>Finally we need to restart inetd run ps aux | grep 'inetd' note down its pid then run kill -HUP pid</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/19/enabling-ssh-on-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passwordless SSH login using SSH Keys</title>
		<link>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/</link>
		<comments>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:32:00 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[passwordless]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=401</guid>
		<description><![CDATA[SSH keys allow you to login without requiring you to type in your password this tutorial will teach you how to set them up First we need to create the key ssh-keygen -t rsa Then we need to move it over to the machine that we want to be able to login too without the [...]]]></description>
			<content:encoded><![CDATA[<p>SSH keys allow you to login without requiring you to type in your password this tutorial will teach you how to set them up</p>
<ol>
<li>First we need to create the key
<pre class="brush: bash;">ssh-keygen -t rsa</pre>
</li>
<li>Then we need to move it over to the machine that we want to be able to login too without the need for a password to do this run the following command
<pre class="brush: bash;">scp .ssh/id_rsa.pub OTHER-MACHINES-IP:.ssh/authorized_keys</pre>
</li>
<li>You should now be able to ssh into that machine without needing a password</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install WordPress (From Command line)</title>
		<link>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/</link>
		<comments>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 02:23:14 +0000</pubDate>
		<dc:creator>Gamerx287</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=326</guid>
		<description><![CDATA[Okay, this tutorial will show you how to very easily install WordPress on your own server from the command line. First step is to make a MySQL database, user and permissions for that user. Secondly, you go to the directory that you want to put WordPress in and get the files: wget http://www.wordpress.org/latest.zip unzip wordpress-*.zip [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, this tutorial will show you how to very easily install WordPress on your own server from the command line.</p>
<p>First step is to make a MySQL database, user and permissions for that user.</p>
<p>Secondly, you go to the directory that you want to put WordPress in and get the files:<br />

<pre class="brush: bash;">wget http://www.wordpress.org/latest.zip
unzip wordpress-*.zip
cd wordpress
mv * ../
rm -R wordpress</pre>
<p>
The next step is to edit the wp-config-sample.php file (using your favorite editor such as nano, vi, etc.) and putting in your MySQL info for the WordPress database.<br />

<pre class="brush: plain;">nano wp-config-sample.php</pre>
<p>
Then change the following</p>
<pre class="brush: php;">define('DB_NAME', 'YOUR-DATABASE-NAME-GOES-HERE');
define('DB_USER', 'YOUR-DATABASE-USER');
define('DB_PASSWORD', 'YOUR-DATABASE-PASSWORD');</pre>
<p></p>
<p>You then have to rename the wp-config-sample.php file to wp-config.php</p>
<pre class="brush: bash;">mv wp-config-sample.php wp-config.php</pre>
<p>The final step is to go to the website you are installing WordPress on and fill out the information and it will install on the MySQL Database. It will then give you a login name and password and you can go from there.</p>
<p>I hope you can put this tutorial to use by using WordPress for your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/19/how-to-install-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Serial Console</title>
		<link>http://tuts4tech.net/2009/06/01/enable-serial-console/</link>
		<comments>http://tuts4tech.net/2009/06/01/enable-serial-console/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 11:31:07 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bios]]></category>
		<category><![CDATA[hyperterminal]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[null modem cable]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[serial console]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=218</guid>
		<description><![CDATA[This tutorial will show you how to set up a serial console on a Linux system, and connect to it via a null modem cable. This is quite useful as it allows you to easily get a console on the system if there are any problems with it and you cannot access it via ssh [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will show you how to set up a serial console on a Linux system, and connect to it via a null modem cable. This is quite useful as it allows you to easily get a console on the system if there are any problems with it and you cannot access it via ssh</p>
<p>Check that you have a serial port and it is enabled in your bios</p>
<pre class="brush: plain;">dmesg | grep tty</pre>
<p></p>
<pre class="brush: plain;">root@duffys-place:~# dmesg | grep tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A</pre>
<h3>Configuring Lilo</h3>
<ol>
<li>open up /etc/lilo.conf
<pre class="brush: plain;">nano /etc/lilo.conf</pre>
</li>
<li>Find the the serial line and change it to the following:
<pre class="brush: plain;">serial=0,38400n8</pre>
</li>
<li>Now edit your kernel settings so they include the line
<pre class="brush: plain;">append=&quot;console=ttyS0,38400n8&quot;</pre>
<p>
It should look something like this</p>
<pre class="brush: plain;">default=Linux
image=/vmlinuz
        label=Linux
        append = &quot;console=ttyS0,38400n8&quot;
        initrd=/initrd.img</pre>
</li>
<li>Run /sbin/lilo to apply the changes</li>
</ol>
<h3>Enable Logins</h3>
<ol>
<li>Open up /etc/inittab
<pre class="brush: plain;">nano /etc/inittab</pre>
<p>
and add the following line</p>
<pre class="brush: plain;">T0:2345:respawn:/sbin/getty -L ttyS0 38400 vt100</pre>
</li>
</ol>
<h3>Testing It</h3>
<ol>
<li>Plug one end of your null modem cable into your server and the other into your computer</li>
<li>Open your terminal client i used putty hyperterminal works fine too</li>
<li>Use the following settings:
<pre class="brush: plain;">Port: COM1 or COM2(what ever your serial port is)
Bits per second: 38400
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None</pre>
</li>
<li>You should be able to see your console. If you have any issues feel free to leave a comment</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/01/enable-serial-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
