🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81744

Re: Authentication for rsync over ssh failing

#81744
From: John F. Morse
Date: Tue, 04 Aug 2009 21:07
50 lines
2998 bytes
Alexander Bartolich wrote:
> John F. Morse wrote:
>   
>> [...]
>> As I mentioned at the end of that paragraph, "There are no improper
>> ownerships nor permissions." This is the first thing that I checked.
>>     
>
> man sshd
> # ~/.ssh/authorized_keys
> #
> # Lists the public keys (RSA/DSA) that can be used for logging in as
> # this user. The format of this file is described above. The content
> # of the file is not highly sensitive, but the recommended permissions
> # are read/write for the user, and not accessible by others.
> #
> # If this file, the ~/.ssh directory, or the user's home directory are
> # writable by other users, then the file could be modified or replaced
> # by unauthorized users. In this case, sshd will not allow it to be
> # used unless the StrictModes option has been set to "no".
> # The recommended permissions can be set by executing
> # "chmod go-w ~/ ~/.ssh ~/.ssh/authorized_keys".
>
> My recommendation: Don't mess with user "news".
> Instead create another user and add it to group "news".
>   


Hi, Alexander.

I fail to see where that would be a solution. It would give the new user
the same modes as user news, the owner of the group news.

It would also run contrary to the "chmod go-w" idea, because the files
are actually 600 or 700 for more security, eliminating all group and
other access.

During testing I did loosen the access up to 777 and still was not able
to authenticate with an RSA key using rsync (but ssh and rcp/scp did work).

See my lengthy reply to Ray, and especially the area where I suspect
rsync may be locking me out because I'm running this remote rsync test
via ssh.

Perhaps you use rsync remotely with RSA/DSA key authentication (not
passwords)?


-- 
John
Technical Details
Message-ID: <h5a7uu$7ga$1@optima5.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!nntp.club.cc.cmu.edu!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
References: <h58ftm$ndc$1@optima5.xanadu-bbs.net> <80ocqwqgiy.fsf@banana.shacknet.nu> <h58lfi$oq5$1@optima5.xanadu-bbs.net> <h58oji$vu0$2@news.albasani.net>

Show Full Headers
Complete Article Headers
Message-ID: <h5a7uu$7ga$1@optima5.xanadu-bbs.net>
Subject: Re: Authentication for rsync over ssh failing
Date: Tue, 04 Aug 2009 16:07:41 -0500
From: "John F. Morse" <john@example.invalid>
References: <h58ftm$ndc$1@optima5.xanadu-bbs.net> <80ocqwqgiy.fsf@banana.shacknet.nu> <h58lfi$oq5$1@optima5.xanadu-bbs.net> <h58oji$vu0$2@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!nntp.club.cc.cmu.edu!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 50
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: optima5.xanadu-bbs.net 1249420062 7690 192.168.89.210 (4 Aug 2009
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Tue, 4 Aug 2009 21:07:42 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
In-Reply-To: <h58oji$vu0$2@news.albasani.net>
X-Enigmail-Version: 0.96.0