<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sun May 26, 2013 4:52 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sun May 26, 2013 4:52 am</pubDate>
  <lastBuildDate>Sun May 26, 2013 4:52 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110348#110348</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 7:08 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks Nelz. I have deleted the file and everything is still working.&lt;br /&gt;
&lt;br /&gt;
I thought it was odd only having one .pub file when I have 3 PC that connect to the server. I thought that maybe ssh rolls them all into one. God only knows how and when I copied it over as I've always used the ssh-copy-id command.&lt;br /&gt;
&lt;br /&gt;
Anyway thanks for all your help.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110348#110348</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Sun Feb 10, 2013 7:08 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110348#110348</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110347#110347</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 6:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Yes you do, and that command will do it. But you copied the file as-is, which can't work, what happens if you want to log in from more than one computer? The &lt;span style=&quot;font-weight: bold&quot;&gt;contents&lt;/span&gt; of the public key file have to be copied into the authorized_keys file on the server, which is what ssh-copy-id does.&lt;br /&gt;
&lt;br /&gt;
You can, and should, delete the public key file from the server.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110347#110347</comments>
                                        <author>nelz</author>
                                        <pubDate>Sun Feb 10, 2013 6:55 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110347#110347</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110346#110346</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 6:51 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;nelz wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;The HTPC's public key shouldn't be on the server at all, except as part of the authorized_keys file. If this is the HTPC's public key, you should delete it. If it's the server's public key, you have a file missing.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
It was the HTPC's public key. I thought you had to copy the public key over to the remote server. I followed Mayank's tutorial in issue 155 OpenSSH Easy logins.&lt;br /&gt;
At the end of the tutorial Mayank says &amp;quot;The next step is to copy the public key to the remote server... You can move the key with a single command&amp;quot;&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;ssh-copy-id -i ~/.ssh/id_rsa_pub &lt;a href=&quot;mailto:admin@server2.remote.com&quot;&gt;admin@server2.remote.com&lt;/a&gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Do I not need to copy the pub key to the remote server then?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110346#110346</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Sun Feb 10, 2013 6:51 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110346#110346</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110345#110345</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 5:23 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      The HTPC's public key shouldn't be on the server at all, except as part of the authorized_keys file. If this is the HTPC's public key, you should delete it. If it's the server's public key, you have a file missing.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110345#110345</comments>
                                        <author>nelz</author>
                                        <pubDate>Sun Feb 10, 2013 5:23 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110345#110345</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110344#110344</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2793'&gt;MartyBartfast&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 3:17 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      If I've understood right your HTPC connects to the Ubuntu server via ssh, so the Ubuntu server has the public key - id_rsa.pub and the HTPC will have the private key - id_rsa , the private key  will not be on the Ubuntu box.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110344#110344</comments>
                                        <author>MartyBartfast</author>
                                        <pubDate>Sun Feb 10, 2013 3:17 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110344#110344</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110343#110343</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 2:53 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      It was going to be either too open permissions or the missing file. I went for the wrong one first &lt;img src=&quot;images/smiles/icon_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
You'll need to use ssh-keygen to create a new pair of key files, unless the old ones are backed up somewhere.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110343#110343</comments>
                                        <author>nelz</author>
                                        <pubDate>Sun Feb 10, 2013 2:53 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110343#110343</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110342#110342</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 1:59 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks Nelz. Comparing the two .ssh folders. (one on the server and the other on my main pc, it seems that the main pc has a flie called id_rsa which is missing from the server. Is it correct to assume this is the private key file?&lt;br /&gt;
&lt;br /&gt;
However, This doesn't seem to be the root of my problem. It seems that the issue was that the home directory for data on the server was too open. Changing the permissions &lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;chmod go-w /home/data&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
seems to have fixed the issue and I can now connect without the password prompt.&lt;br /&gt;
&lt;br /&gt;
Strange I wonder where the id_rsa file is on the server.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;root@fileserver&amp;#58;/# find id_rsa&lt;br /&gt;
find&amp;#58; ‘id_rsa’&amp;#58; No such file or directory&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110342#110342</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Sun Feb 10, 2013 1:59 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110342#110342</guid>
                                      </item>
                                      <item>
                                        <title>Re: ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110341#110341</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 1:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      You're missing the private key.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110341#110341</comments>
                                        <author>nelz</author>
                                        <pubDate>Sun Feb 10, 2013 1:19 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110341#110341</guid>
                                      </item>
                                      <item>
                                        <title>ssh help I foolishly changed permissions on server</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110339#110339</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Feb 10, 2013 11:37 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi all, I wonder if someone could point me in the right direction.&lt;br /&gt;
&lt;br /&gt;
I have an Ubuntu 12.04 mediaserver at home. All the files are kept under a username of data at /home/data. My HTPC mounts the server via sshfs and connects using rsa keys. All was working fine until yesterday when I stupidly changed the file permissions of the user called data on the server. I changed the permissions to a+wrx /home/data (I can hear you all laughing) and now everytime I try to connect I am prompted for a the data@xbmc password.&lt;br /&gt;
&lt;br /&gt;
I've googled around and tried changing permissions as suggested in a few posts, but nothing seems to put things back.&lt;br /&gt;
&lt;br /&gt;
Here is the output for the server's permissions. Can anyone spot what I need to change?&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
drwxr-xr-x&amp;nbsp; &amp;nbsp;2 data data&amp;nbsp; 4096 Feb 10 09&amp;#58;44 .ssh&lt;br /&gt;
&lt;br /&gt;
data@fileserver&amp;#58;/home/data/.ssh$ ls -l /home/data/.ssh&lt;br /&gt;
total 16&lt;br /&gt;
-rw-r--r-- 1 data data&amp;nbsp; 392 Feb 10 09&amp;#58;44 authorized_keys&lt;br /&gt;
-rwxrwxrwx 1 data data 3915 Feb&amp;nbsp; 2 15&amp;#58;56 authorized_keys.old&lt;br /&gt;
-rw-r--r-- 1 data data&amp;nbsp; 391 Sep 13 17&amp;#58;55 id_rsa.pub&lt;br /&gt;
-rw-r--r-- 1 data data&amp;nbsp; 222 Sep 15 11&amp;#58;29 known_hosts&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for any help&lt;br /&gt;
Lee</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110339#110339</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Sun Feb 10, 2013 11:37 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110339#110339</guid>
                                      </item></channel></rss>