On Thu, 24 Oct 2019, Paul Slootman wrote: > Note you're not doing what Wes suggested. You're missing the path to the > identity file, which is OK if your current directory is /root/.ssh .
Paul, I happened to be in root/s .ssh/ directory when I ran the command. > First with, and the without the path? With the absolute path: # ssh -vi /root/.ssh/id_ed25519 localhost OpenSSH_7.4p1, OpenSSL 1.0.2t 10 Sep 2019 debug1: Reading configuration data /root/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to localhost [127.0.0.1] port <redacted>. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file id_ed25519 type 4 debug1: key_load_public: No such file or directory debug1: identity file id_ed25519-cert type -1 debug1: identity file /root/.ssh/id_ed25519 type 4 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000 debug1: Authenticating to localhost:14982 as 'root' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha...@libssh.org debug1: kex: host key algorithm: ssh-ed25519 debug1: kex: server->client cipher: chacha20-poly1...@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1...@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ssh-ed25519 SHA256:/RInRdtcIMbpPu3LZmpg5wfAWi9ozQwgKLPnTQEDcxg debug1: Host '[localhost]:14982' is known and matches the ED25519 host key. debug1: Found key in /root/.ssh/known_hosts:3 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering ED25519 public key: id_ed25519 debug1: Authentications that can continue: publickey debug1: Offering ED25519 public key: /root/.ssh/id_ed25519 debug1: Authentications that can continue: publickey debug1: No more authentication methods to try. Permission denied (publickey). Same as before > Also check the sshd logfile (may be in /var/log/secure.log or daemon.log, > for example), that may indicate if permissions etc. are wrong. The past two days in /var/log/secure: Oct 23 05:38:51 salmo su[20224]: Successful su for root by rshepard Oct 23 05:38:51 salmo su[20224]: + /dev/pts/2 rshepard:root Oct 23 16:49:58 salmo su[11611]: Successful su for root by rshepard Oct 23 16:49:58 salmo su[11611]: + /dev/pts/2 rshepard:root Oct 24 05:41:08 salmo su[22479]: Successful su for root by rshepard Oct 24 05:41:08 salmo su[22479]: + /dev/pts/1 rshepard:root > I note you didn't check (or at least didn't show) the permissions of the > directories /root and /root/.ssh # ll / total 120 drwxr-xr-x 2 root root 4096 Jul 16 13:09 bin/ drwxr-xr-x 5 root root 4096 Aug 28 07:16 boot/ drwxrwxrwx 26 root root 4096 Oct 4 16:04 data/ drwxr-xr-x 16 root root 5580 Oct 23 15:26 dev/ drwxr-xr-x 111 root root 12288 Oct 23 16:51 etc/ drwxr-xr-x 2 root root 4096 Sep 23 2018 flashdr/ drwxr-xr-x 5 root root 4096 Nov 11 2018 home/ drwxr-xr-x 7 root root 4096 Sep 8 08:12 lib/ drwxr-xr-x 2 root root 12288 Sep 17 07:18 lib64/ drwx------ 2 root root 16384 Dec 31 2007 lost+found/ drwxr-xr-x 16 root root 4096 Dec 31 2007 media/ drwxr-xr-x 13 root root 4096 Oct 19 13:41 mnt/ drwxrwxrwx 49 root root 4096 Oct 10 13:50 opt/ dr-xr-xr-x 341 root root 0 Oct 21 22:57 proc/ drwx--x--- 26 root root 4096 Oct 23 16:16 root/ drwxr-xr-x 8 root root 200 Oct 23 07:24 run/ drwxr-xr-x 2 root root 12288 Aug 7 16:13 sbin/ drwxr-xr-x 2 root root 4096 Oct 14 09:26 srv/ dr-xr-xr-x 13 root root 0 Oct 24 05:40 sys/ drwxr-xr-x 2 root root 4096 Sep 23 2018 thumb/ drwxrwxrwt 30 root root 12288 Oct 24 06:21 tmp/ drwxr-xr-x 17 root root 4096 Oct 21 14:24 usr/ drwxr-xr-x 18 root root 4096 Oct 18 13:06 var/ # ll /root/.ssh/ total 20 -rw------- 1 root root 93 Oct 23 15:09 authorized_keys -rw-r--r-- 1 root root 249 Nov 15 2018 config -rw------- 1 root root 399 Oct 23 11:39 id_ed25519 -rw-r--r-- 1 root root 92 Oct 23 11:39 id_ed25519.pub -rw------- 1 root root 326 Oct 23 15:46 known_hosts Regards, Rich _______________________________________________ Dirvish mailing list Dirvish@dirvish.org http://www.dirvish.org/mailman/listinfo/dirvish