ssh id_rsa.pub not accessible

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a problem when i try to use a key with ssh:



ssh -i /ssh/id_rsa.pub root@xxx.xxx.xxx.xxx
Warning: Identity file /ssh/id_rsa.pub not accessible: No such file or directory.









share|improve this question



























    up vote
    0
    down vote

    favorite












    I have a problem when i try to use a key with ssh:



    ssh -i /ssh/id_rsa.pub root@xxx.xxx.xxx.xxx
    Warning: Identity file /ssh/id_rsa.pub not accessible: No such file or directory.









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a problem when i try to use a key with ssh:



      ssh -i /ssh/id_rsa.pub root@xxx.xxx.xxx.xxx
      Warning: Identity file /ssh/id_rsa.pub not accessible: No such file or directory.









      share|improve this question















      I have a problem when i try to use a key with ssh:



      ssh -i /ssh/id_rsa.pub root@xxx.xxx.xxx.xxx
      Warning: Identity file /ssh/id_rsa.pub not accessible: No such file or directory.






      ssh openssh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 10 at 20:31









      dpb

      4,90911545




      4,90911545










      asked Apr 10 at 20:20









      mrkemaltas

      63




      63




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          /ssh is not a valid file path, and if it is you don't have access to view it.



          SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:



          ssh -i $HOME/.ssh/id_rsa root@x.x.x.x





          share|improve this answer






















          • ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
            – mrkemaltas
            Apr 10 at 20:29







          • 1




            @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
            – Thomas Ward♦
            Apr 10 at 20:33










          • @user68186 yes root
            – mrkemaltas
            Apr 10 at 20:41










          • @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
            – mrkemaltas
            Apr 10 at 20:46











          • @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
            – mrkemaltas
            Apr 10 at 20:56

















          up vote
          -1
          down vote













          Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.



          For an Ubuntu install, root's home is /root.



          You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.






          share|improve this answer




















          • Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
            – mrkemaltas
            Apr 10 at 21:17










          • That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
            – Martin W
            Apr 10 at 21:39










          • Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
            – Martin W
            Apr 10 at 21:40











          • Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
            – mrkemaltas
            Apr 10 at 21:55










          • Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
            – Martin W
            Apr 10 at 22:05










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023797%2fssh-id-rsa-pub-not-accessible%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          /ssh is not a valid file path, and if it is you don't have access to view it.



          SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:



          ssh -i $HOME/.ssh/id_rsa root@x.x.x.x





          share|improve this answer






















          • ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
            – mrkemaltas
            Apr 10 at 20:29







          • 1




            @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
            – Thomas Ward♦
            Apr 10 at 20:33










          • @user68186 yes root
            – mrkemaltas
            Apr 10 at 20:41










          • @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
            – mrkemaltas
            Apr 10 at 20:46











          • @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
            – mrkemaltas
            Apr 10 at 20:56














          up vote
          1
          down vote













          /ssh is not a valid file path, and if it is you don't have access to view it.



          SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:



          ssh -i $HOME/.ssh/id_rsa root@x.x.x.x





          share|improve this answer






















          • ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
            – mrkemaltas
            Apr 10 at 20:29







          • 1




            @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
            – Thomas Ward♦
            Apr 10 at 20:33










          • @user68186 yes root
            – mrkemaltas
            Apr 10 at 20:41










          • @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
            – mrkemaltas
            Apr 10 at 20:46











          • @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
            – mrkemaltas
            Apr 10 at 20:56












          up vote
          1
          down vote










          up vote
          1
          down vote









          /ssh is not a valid file path, and if it is you don't have access to view it.



          SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:



          ssh -i $HOME/.ssh/id_rsa root@x.x.x.x





          share|improve this answer














          /ssh is not a valid file path, and if it is you don't have access to view it.



          SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:



          ssh -i $HOME/.ssh/id_rsa root@x.x.x.x






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 11 at 0:30

























          answered Apr 10 at 20:24









          Thomas Ward♦

          41.4k23112166




          41.4k23112166











          • ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
            – mrkemaltas
            Apr 10 at 20:29







          • 1




            @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
            – Thomas Ward♦
            Apr 10 at 20:33










          • @user68186 yes root
            – mrkemaltas
            Apr 10 at 20:41










          • @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
            – mrkemaltas
            Apr 10 at 20:46











          • @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
            – mrkemaltas
            Apr 10 at 20:56
















          • ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
            – mrkemaltas
            Apr 10 at 20:29







          • 1




            @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
            – Thomas Ward♦
            Apr 10 at 20:33










          • @user68186 yes root
            – mrkemaltas
            Apr 10 at 20:41










          • @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
            – mrkemaltas
            Apr 10 at 20:46











          • @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
            – mrkemaltas
            Apr 10 at 20:56















          ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
          – mrkemaltas
          Apr 10 at 20:29





          ssh -i /home/root/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx Warning: Identity file /home/root/.ssh/id_rsa.pub not accessible: No such file or directory. The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is SHA256:--------------------------. Are you sure you want to continue connecting (yes/no)? after yes and i entered my password this error Permission denied, please try again.
          – mrkemaltas
          Apr 10 at 20:29





          1




          1




          @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
          – Thomas Ward♦
          Apr 10 at 20:33




          @mrkemaltas Are you already the root user when you're trying to SSH, or are you trying to SSH from your own user account to root somewhere else? What's the exact command you entered?
          – Thomas Ward♦
          Apr 10 at 20:33












          @user68186 yes root
          – mrkemaltas
          Apr 10 at 20:41




          @user68186 yes root
          – mrkemaltas
          Apr 10 at 20:41












          @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
          – mrkemaltas
          Apr 10 at 20:46





          @ThomasWard I can not connect to sftp or databases because I can not connect with ssh. This command "ssh -i /home/root/.ssh/id_rsa.pub root@xxxx.xxx.xxx.xxx" after entered my password i see this error "Permission denied, please try again."
          – mrkemaltas
          Apr 10 at 20:46













          @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
          – mrkemaltas
          Apr 10 at 20:56




          @user681886 I tried, but I get the same mistake. My problem with remote connection with server "ssh" is that I get "Permission Denied" (publickey, password) error.
          – mrkemaltas
          Apr 10 at 20:56












          up vote
          -1
          down vote













          Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.



          For an Ubuntu install, root's home is /root.



          You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.






          share|improve this answer




















          • Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
            – mrkemaltas
            Apr 10 at 21:17










          • That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
            – Martin W
            Apr 10 at 21:39










          • Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
            – Martin W
            Apr 10 at 21:40











          • Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
            – mrkemaltas
            Apr 10 at 21:55










          • Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
            – Martin W
            Apr 10 at 22:05














          up vote
          -1
          down vote













          Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.



          For an Ubuntu install, root's home is /root.



          You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.






          share|improve this answer




















          • Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
            – mrkemaltas
            Apr 10 at 21:17










          • That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
            – Martin W
            Apr 10 at 21:39










          • Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
            – Martin W
            Apr 10 at 21:40











          • Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
            – mrkemaltas
            Apr 10 at 21:55










          • Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
            – Martin W
            Apr 10 at 22:05












          up vote
          -1
          down vote










          up vote
          -1
          down vote









          Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.



          For an Ubuntu install, root's home is /root.



          You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.






          share|improve this answer












          Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.



          For an Ubuntu install, root's home is /root.



          You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 10 at 21:10









          Martin W

          74238




          74238











          • Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
            – mrkemaltas
            Apr 10 at 21:17










          • That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
            – Martin W
            Apr 10 at 21:39










          • Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
            – Martin W
            Apr 10 at 21:40











          • Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
            – mrkemaltas
            Apr 10 at 21:55










          • Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
            – Martin W
            Apr 10 at 22:05
















          • Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
            – mrkemaltas
            Apr 10 at 21:17










          • That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
            – Martin W
            Apr 10 at 21:39










          • Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
            – Martin W
            Apr 10 at 21:40











          • Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
            – mrkemaltas
            Apr 10 at 21:55










          • Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
            – Martin W
            Apr 10 at 22:05















          Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
          – mrkemaltas
          Apr 10 at 21:17




          Yes I did. When I entered ssh user@host. I see this error "The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established."
          – mrkemaltas
          Apr 10 at 21:17












          That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
          – Martin W
          Apr 10 at 21:39




          That is standard if the host key has not been seen previously by the local client. Does it ask something like: 'Are you sure you want to continue connecting (yes/no)?'
          – Martin W
          Apr 10 at 21:39












          Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
          – Martin W
          Apr 10 at 21:40





          Also, depending on your ssh client, you can set the StrictHostKeyChecking option to no on the command line, and/or send the key to a null known_hosts file. You can also set these options in your config file, either for all hosts or for a given set of IP addresses or host names. You can do this on fly with the command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no. However, I don't recommend doing this since it is a security risk.
          – Martin W
          Apr 10 at 21:40













          Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
          – mrkemaltas
          Apr 10 at 21:55




          Ok. However, if you answer Yes and enter the password, the server responds "Permission denied". I changed the ssha_config file. I can not connect to the server with ssh even though I restarted ssh. I also open the portal number 22 from ufw .
          – mrkemaltas
          Apr 10 at 21:55












          Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
          – Martin W
          Apr 10 at 22:05




          Hm. It sounds like a password authentication problem. I'm sure you've tried logging in as root on the remote system, right, and it works? I suggest trying this as a normal user, just as a sanity check, although I do appreciate that you've changed the sshd_config and restarted the service, so root should have access. It does seem clear you are connecting to the sshd on the remote system so it's not a port problem.
          – Martin W
          Apr 10 at 22:05

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023797%2fssh-id-rsa-pub-not-accessible%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          How do I move numbers in filenames, in a batch renaming operation?