So I it seems hat the issue is about DNS lookup error: general failure when
I run ssh .

backuppc@backup:/ % /usr/bin/ssh -v -x -l backuppc localhost /bin/foobar
OpenSSH_7.2p2, OpenSSL 1.0.2k-freebsd  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/backuppc/.ssh/id_rsa type 1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_rsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_dsa type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_dsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_ecdsa type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_ecdsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_ed25519 type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/backuppc/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2 FreeBSD-20161230
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2
FreeBSD-20161230
debug1: match: OpenSSH_7.2 FreeBSD-20161230 pat OpenSSH* compat 0x04000000
debug1: Authenticating to localhost:22 as 'backuppc'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC:
<implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC:
<implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256
SHA256:7IBJcg+uURyKkFB/9QuGJoU9tgm4m+gBiiVG44+nvyY
DNS lookup error: general failure
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/backuppc/.ssh/known_hosts:14
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: Fssh_kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/backuppc/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/backuppc/.ssh/id_dsa
debug1: Trying private key: /home/backuppc/.ssh/id_ecdsa
debug1: Trying private key: /home/backuppc/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

But it's a bit confusing because as I understand the server connect to
himself when it try to backup the localhost so when the connection can't be
set up ?

Regards,

Hari

2018-01-30 9:28 GMT+03:00 Craig Barratt via BackupPC-users <
[email protected]>:

> Please remove the -q option.  Try adding -v (or even -vv) to the ssh args.
>
> What happens if you run some other command, eg, /bin/date?  What happens
> if you run some path that doesn't exist, eg, /bin/foobar.
>
> Examples:
>
> /usr/bin/ssh -v -x -l backuppc localhost /bin/date
> /usr/bin/ssh -v -x -l backuppc localhost /bin/foobar
>
>
> Craig
>
>
> On Mon, Jan 29, 2018 at 10:14 PM, RAKOTONDRAINIBE Harimino Lalatiana <
> [email protected]> wrote:
>
>> Hi Alexander, Graig
>>
>> I installed the backuppc4 and p5-BackupPC-XS via ports. And I reinstalled
>> the rsync-bpc via ports.
>>
>> Anyway their still no output for the command below and yes it exit
>> immediately:
>>
>> backuppc@backup:/ % /usr/bin/ssh -q -x -l backuppc localhost
>> /usr/local/bin/rsync --server --sender -svvlHogDtpre.iLsf
>>
>> Regards,
>>
>> Hari
>>
>>
>> 2018-01-29 22:05 GMT+03:00 Alexander Moisseev via BackupPC-users <
>> [email protected]>:
>>
>>> On 1/29/2018 2:53 PM, RAKOTONDRAINIBE Harimino Lalatiana wrote:
>>>
>>>> The backuppc is installed in freebsd 11.1
>>>> All hosts seems to be backuppc well except the localhost.
>>>> I did like it was said in the forum so  I build rsync-bpc 3.0.9 from
>>>> current git .
>>>>
>>>
>>> BTW, You could use ports:
>>>
>>> net/rsync-bpc
>>> sysutils/backuppc4
>>> sysutils/p5-BackupPC-XS
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> BackupPC-users mailing list
>>> [email protected]
>>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>>> Wiki:    http://backuppc.wiki.sourceforge.net
>>> Project: http://backuppc.sourceforge.net/
>>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> BackupPC-users mailing list
>> [email protected]
>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:    http://backuppc.wiki.sourceforge.net
>> Project: http://backuppc.sourceforge.net/
>>
>>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to