<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SSH Into a Synology Disk Station Using Secure Keys</title>
	<atom:link href="http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/</link>
	<description>Better late than never</description>
	<lastBuildDate>Tue, 10 Jan 2012 18:01:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jx7</title>
		<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/comment-page-1/#comment-462</link>
		<dc:creator>Jx7</dc:creator>
		<pubDate>Wed, 09 Nov 2011 23:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/#comment-462</guid>
		<description>Great, thank you!

How can I do this but with another user than root?

I&#039;ve already implemented the ssh login with another user (my_user in this example):

mkdir /volume1/users
mkdir /volume1/users/my_user

cp /root/.profile /volume1/users/my_user

chown -R my_user:users /volume1/users/my_user/

vi /volume1/users/my_user/.profile

change:
HOME=/root

to:
HOME=/volume1/homes/my_user

cp /etc/passwd /etc/passwd.old
vi /etc/passwd

change:
my_user:x:1026:100::/var/services/homes/my_user:/sbin/nologin
(numbers can be differents)

to:
my_user:x:1026:100::/volume1/users/my_user:/bin/sh

vi /etc/profile

add at the bottom:
if [ -f &quot;/volume1/users/$USER/.profile&quot; ]; then
. &quot;/volume1/users/$USER/.profile&quot;
fi

test:
&gt; whoami
root
&gt; cd /
&gt; pwd
/
&gt; su - my_user

BusyBox...

&gt; whoami
my_user
&gt; pwd
/volume1/users/my_user
&gt; echo $HOME
/volume1/homes/my_user
&gt; cd
&gt; pwd
/volume1/homes/my_user
&gt; exit
&gt; pwd
/
&gt;

restart ssh daemon by telnet:
/usr/syno/etc.defaults/rc.d/S95sshd.sh

test:
ssh my_user@IP_ADDRESS</description>
		<content:encoded><![CDATA[<p>Great, thank you!</p>
<p>How can I do this but with another user than root?</p>
<p>I&#8217;ve already implemented the ssh login with another user (my_user in this example):</p>
<p>mkdir /volume1/users<br />
mkdir /volume1/users/my_user</p>
<p>cp /root/.profile /volume1/users/my_user</p>
<p>chown -R my_user:users /volume1/users/my_user/</p>
<p>vi /volume1/users/my_user/.profile</p>
<p>change:<br />
HOME=/root</p>
<p>to:<br />
HOME=/volume1/homes/my_user</p>
<p>cp /etc/passwd /etc/passwd.old<br />
vi /etc/passwd</p>
<p>change:<br />
my_user:x:1026:100::/var/services/homes/my_user:/sbin/nologin<br />
(numbers can be differents)</p>
<p>to:<br />
my_user:x:1026:100::/volume1/users/my_user:/bin/sh</p>
<p>vi /etc/profile</p>
<p>add at the bottom:<br />
if [ -f "/volume1/users/$USER/.profile" ]; then<br />
. &#8220;/volume1/users/$USER/.profile&#8221;<br />
fi</p>
<p>test:<br />
&gt; whoami<br />
root<br />
&gt; cd /<br />
&gt; pwd<br />
/<br />
&gt; su &#8211; my_user</p>
<p>BusyBox&#8230;</p>
<p>&gt; whoami<br />
my_user<br />
&gt; pwd<br />
/volume1/users/my_user<br />
&gt; echo $HOME<br />
/volume1/homes/my_user<br />
&gt; cd<br />
&gt; pwd<br />
/volume1/homes/my_user<br />
&gt; exit<br />
&gt; pwd<br />
/<br />
&gt;</p>
<p>restart ssh daemon by telnet:<br />
/usr/syno/etc.defaults/rc.d/S95sshd.sh</p>
<p>test:<br />
ssh my_user@IP_ADDRESS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/comment-page-1/#comment-368</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 02 Feb 2011 19:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/#comment-368</guid>
		<description>Is there a way to test this without disabling password logons?  I tried setting this up previously and I was locked out after the public key attempt failed.  I suspect this was due to the number of bits being set to 1024 in the sshd_config (my key is 2048). I didn&#039;t know how to fix this issue, so I ended up having to reset to defaults.

I&#039;d like to try this again, but I don&#039;t want to leave myself unable to ssh in and unable to fix the problem without having to clear other things.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>Is there a way to test this without disabling password logons?  I tried setting this up previously and I was locked out after the public key attempt failed.  I suspect this was due to the number of bits being set to 1024 in the sshd_config (my key is 2048). I didn&#8217;t know how to fix this issue, so I ended up having to reset to defaults.</p>
<p>I&#8217;d like to try this again, but I don&#8217;t want to leave myself unable to ssh in and unable to fix the problem without having to clear other things.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Websites tagged "passphrase" on Postsaver</title>
		<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/comment-page-1/#comment-105</link>
		<dc:creator>Websites tagged "passphrase" on Postsaver</dc:creator>
		<pubDate>Mon, 16 Feb 2009 11:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/#comment-105</guid>
		<description>[...] - SSH Into a Synology Disk Station Using Secure Keys saved by lincolnlibrary2009-02-06 - Test the strength of your Passphrase saved by Tbeer2009-02-01 - [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; SSH Into a Synology Disk Station Using Secure Keys saved by lincolnlibrary2009-02-06 &#8211; Test the strength of your Passphrase saved by Tbeer2009-02-01 &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobpeers -&#62; blog &#187; Diskstation Firmware Upgrade Deletes SSH Settings</title>
		<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/comment-page-1/#comment-49</link>
		<dc:creator>bobpeers -&#62; blog &#187; Diskstation Firmware Upgrade Deletes SSH Settings</dc:creator>
		<pubDate>Wed, 23 Jul 2008 13:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/#comment-49</guid>
		<description>[...] not like I upgrade the firmware that often but it&#8217;s annoying that I have to go through this procedure every time I [...]</description>
		<content:encoded><![CDATA[<p>[...] not like I upgrade the firmware that often but it&#8217;s annoying that I have to go through this procedure every time I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobpeers -&#62; blog &#187; Rsync Over SSH Using Alternate Port and Private Key</title>
		<link>http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/comment-page-1/#comment-26</link>
		<dc:creator>bobpeers -&#62; blog &#187; Rsync Over SSH Using Alternate Port and Private Key</dc:creator>
		<pubDate>Sun, 01 Jun 2008 19:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bobpeers.com/2008/05/30/ssh-into-a-synology-disk-station-using-secure-keys/#comment-26</guid>
		<description>[...] previous post described how to set up a public/private key to log in to my disk station without a password and [...]</description>
		<content:encoded><![CDATA[<p>[...] previous post described how to set up a public/private key to log in to my disk station without a password and [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

