[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authentication


Hi,

This issue has been resolved !.

The problem was me :)  It was a wrong IP address.

After appending my public key to the correspondent file in
"/etc/ssh/authKeys/%u.pub" everything should work ok.
My problem was my script has the wrong IP address :(

Thank you for your help !

regards,
bruno

El jue., 30 jul. 2020 a las 8:53, Bruno Buzzi Brassesco (<
bruno.brasesco@xxxxxxxxx>) escribió:

> Hi,
> If you define in sshd_config:
> AuthorizedKeysFile /etc/ssh/authKeys/%u.pub
> Then it will take the public key of the current user (myCurrentUser.pub).
>
> I have two Ubuntu installations (both for development) with Libssh one is
> working fine with this configuration and the other (much bigger) is more
> restrictive with permissions it is not working.
>
> Still researching on this in the log i see (the public key is accepted but
> the connection is dropped):
> Jul 30 12:33:42 db-dbmtest sshd[5366]: Accepted publickey for gsadmin from
> IP port 51608 ssh2: RSA SHA2
>  56:f2qRlXQ3cf+ttP3m0XQ3LBexiqEY3EdfgTRGyUr6bik
> Jul 30 12:33:42 db-dbmtest sshd[5366]: pam_unix(sshd:session): session
> opened for user gsadmin by (uid=0)
> Jul 30 12:33:42 db-dbmtest systemd-logind[691]: New session 214619 of user
> gsadmin.
> Jul 30 12:33:43 db-dbmtest sshd[5413]: Received disconnect from IP port
> 51608:11: disconnected by user
> Jul 30 12:33:43 db-dbmtest sshd[5413]: Disconnected from IP port 51608
> Jul 30 12:33:43 db-dbmtest sshd[5366]: pam_unix(sshd:session): session
> closed for user gsadmin
> Jul 30 12:33:43 db-dbmtest systemd-logind[691]: Removed session 214619.
> Jul 30 12:34:01 db-dbmtest CRON[6028]: pam_unix(cron:session): session
> opened for user gsadmin by (uid=0)
> Jul 30 12:34:01 db-dbmtest CRON[6027]: pam_unix(cron:session): session
> opened for user gsadmin by (uid=0)
> Jul 30 12:34:01 db-dbmtest CRON[6026]: pam_unix(cron:session): session
> opened for user root by (uid=0)
> Jul 30 12:34:01 db-dbmtest CRON[6026]: pam_unix(cron:session): session
> closed for user root
> Jul 30 12:34:01 db-dbmtest CRON[6027]: pam_unix(cron:session): session
> closed for user gsadmin
> Jul 30 12:34:01 db-dbmtest sudo:     root : TTY=unknown ;
> PWD=/usr/lib/check_mk_agent/local ; USER=root ; COMMAND
>  =/usr/bin/wbinfo -t
>
> This is suspicious :
> Jul 30 12:33:43 db-dbmtest sshd[5413]: Received disconnect from IP port
> 51608:11: disconnected by user
>
> It seems that the user disconnects but it is a script running.
>
> Still researching this if i find a solution i will post it here.
>
> regards,
> bruno
>
>
>
>
> El mar., 28 jul. 2020 a las 14:25, <g4-lisz@xxxxxxxxxxxx> escribió:
>
>> On 28.07.20 15:25, Bruno Buzzi Brassesco wrote:
>> > Maybe has nothing to with this but in our installation /authorizedKeys
>> > is a folder (not a file).
>>
>> I only know this as a single file containing one key per line, at least
>> for openSSH. But then I wonder why login works with another SSH client...
>>
>> Set a high verbosity level on both sides to see the reason why the key
>> was rejected.
>>
>>
>>

References:
AuthenticationBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Re: AuthenticationBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Re: Authenticationg4-lisz@xxxxxxxxxxxx
Re: AuthenticationBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org