SSH connection looking at incorrect private key - unable to connect The Next CEO of Stack Overflowsetting up ssh public keyWhy is my ssh connection unauthorized although I have updated my key on the remote machine?How to prevent the messages about REMOTE HOST IDENTIFICATION HAS CHANGEDssh-copy-id: why is the end of my public key different on my local vs remote?SSH pageant not workingSSH Remote Execution - checking server can do it?SSH: Why is my system offering my private key when attempting public key authentication?Why is my SSH connection being closed immediately after pubkey auth succeeds?SSH Configuration Help / Can't tunnelpasswordless ssh to localhost in Ubuntu 16.04

What happened in Rome, when the western empire "fell"?

How to start emacs in "nothing" mode (`fundamental-mode`)

How to solve a differential equation with a term to a power?

Is micro rebar a better way to reinforce concrete than rebar?

Which kind of appliances can one connect to electric sockets located in a airplane's toilet?

Why does standard notation not preserve intervals (visually)

Inappropriate reference requests from Journal reviewers

MessageLevel in QGIS3

How do scammers retract money, while you can’t?

Complex fractions

Unreliable Magic - Is it worth it?

Is it possible to search for a directory/file combination?

What happens if you roll doubles 3 times then land on "Go to jail?"

If the heap is initialized for security, then why is the stack uninitialized?

Bold, vivid family

Has this building technique been used in an official set?

Is it professional to write unrelated content in an almost-empty email?

sp_blitzCache results Memory grants

If a black hole is created from light, can this black hole then move at speed of light?

Won the lottery - how do I keep the money?

Why has the US not been more assertive in confronting Russia in recent years?

In excess I'm lethal

How does the mv command work with external drives?

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?



SSH connection looking at incorrect private key - unable to connect



The Next CEO of Stack Overflowsetting up ssh public keyWhy is my ssh connection unauthorized although I have updated my key on the remote machine?How to prevent the messages about REMOTE HOST IDENTIFICATION HAS CHANGEDssh-copy-id: why is the end of my public key different on my local vs remote?SSH pageant not workingSSH Remote Execution - checking server can do it?SSH: Why is my system offering my private key when attempting public key authentication?Why is my SSH connection being closed immediately after pubkey auth succeeds?SSH Configuration Help / Can't tunnelpasswordless ssh to localhost in Ubuntu 16.04










0















I am having a hard time understanding the output from the command below. I am trying to connect to a godaddy server and have been unsuccessful. I enabled SSH access on godaddy's cpanel, created a public/private key, downloaded the private key, moved it into ~/.ssh and added the key to the keychain using ssh-add -K ~/.ssh/mykey. I am unable to connect. I know there is another question on this site but I am providing actual output and want to know the reason it's failing.



I am not sure why it's not looking for SSH key called key4govi (that's what my private key is called. It seems to be looking at they key id_rsa(assuming from the output).



Here are my folder contents for the .ssh folder on my local machine:



github_rsa 
github_rsa.pub
id_rsa
id_rsa.pub
key4govi
key4govi.pub
known_hosts


Here's my command:
~ => ssh callydai@callydai.com -vv



Here's the output:



OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to callydai.com [107.180.55.15] port 22.
debug1: Connection established.
debug1: identity file /Users/raigovind93/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Connection reset by peer









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    we are not blind, please don't use this kind of big bold text

    – Vlastimil
    Feb 5 '17 at 4:36















0















I am having a hard time understanding the output from the command below. I am trying to connect to a godaddy server and have been unsuccessful. I enabled SSH access on godaddy's cpanel, created a public/private key, downloaded the private key, moved it into ~/.ssh and added the key to the keychain using ssh-add -K ~/.ssh/mykey. I am unable to connect. I know there is another question on this site but I am providing actual output and want to know the reason it's failing.



I am not sure why it's not looking for SSH key called key4govi (that's what my private key is called. It seems to be looking at they key id_rsa(assuming from the output).



Here are my folder contents for the .ssh folder on my local machine:



github_rsa 
github_rsa.pub
id_rsa
id_rsa.pub
key4govi
key4govi.pub
known_hosts


Here's my command:
~ => ssh callydai@callydai.com -vv



Here's the output:



OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to callydai.com [107.180.55.15] port 22.
debug1: Connection established.
debug1: identity file /Users/raigovind93/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Connection reset by peer









share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    we are not blind, please don't use this kind of big bold text

    – Vlastimil
    Feb 5 '17 at 4:36













0












0








0








I am having a hard time understanding the output from the command below. I am trying to connect to a godaddy server and have been unsuccessful. I enabled SSH access on godaddy's cpanel, created a public/private key, downloaded the private key, moved it into ~/.ssh and added the key to the keychain using ssh-add -K ~/.ssh/mykey. I am unable to connect. I know there is another question on this site but I am providing actual output and want to know the reason it's failing.



I am not sure why it's not looking for SSH key called key4govi (that's what my private key is called. It seems to be looking at they key id_rsa(assuming from the output).



Here are my folder contents for the .ssh folder on my local machine:



github_rsa 
github_rsa.pub
id_rsa
id_rsa.pub
key4govi
key4govi.pub
known_hosts


Here's my command:
~ => ssh callydai@callydai.com -vv



Here's the output:



OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to callydai.com [107.180.55.15] port 22.
debug1: Connection established.
debug1: identity file /Users/raigovind93/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Connection reset by peer









share|improve this question
















I am having a hard time understanding the output from the command below. I am trying to connect to a godaddy server and have been unsuccessful. I enabled SSH access on godaddy's cpanel, created a public/private key, downloaded the private key, moved it into ~/.ssh and added the key to the keychain using ssh-add -K ~/.ssh/mykey. I am unable to connect. I know there is another question on this site but I am providing actual output and want to know the reason it's failing.



I am not sure why it's not looking for SSH key called key4govi (that's what my private key is called. It seems to be looking at they key id_rsa(assuming from the output).



Here are my folder contents for the .ssh folder on my local machine:



github_rsa 
github_rsa.pub
id_rsa
id_rsa.pub
key4govi
key4govi.pub
known_hosts


Here's my command:
~ => ssh callydai@callydai.com -vv



Here's the output:



OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to callydai.com [107.180.55.15] port 22.
debug1: Connection established.
debug1: identity file /Users/raigovind93/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/raigovind93/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Connection reset by peer






ssh






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 '17 at 4:36









Vlastimil

8,3481465145




8,3481465145










asked Feb 5 '17 at 4:15









Govind RaiGovind Rai

110119




110119





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









  • 1





    we are not blind, please don't use this kind of big bold text

    – Vlastimil
    Feb 5 '17 at 4:36












  • 1





    we are not blind, please don't use this kind of big bold text

    – Vlastimil
    Feb 5 '17 at 4:36







1




1





we are not blind, please don't use this kind of big bold text

– Vlastimil
Feb 5 '17 at 4:36





we are not blind, please don't use this kind of big bold text

– Vlastimil
Feb 5 '17 at 4:36










3 Answers
3






active

oldest

votes


















0














ssh_exchange_identification: read: Connection reset by peer


points out to different error. It means that you were able to connect to ssh server but the connection was closed immediately without getting correct "hello" message. Is the server running there? Isn't there some kind of policy where from you can connect? Do you have correct reverse DNS record?



Your key is correctly in keychain and once you would be able to connect to the correct key will be offered. The other keys touched are default paths and ssh will try to open them always.






share|improve this answer























  • I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

    – Govind Rai
    Feb 5 '17 at 8:15












  • I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

    – Jakuje
    Feb 5 '17 at 8:16












  • Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

    – Govind Rai
    Feb 5 '17 at 8:18



















-1














You need to add your client's public key in the server's authorized keys. So you append the contents of client:~/.ssh/id_rsa.pub into server:~/.ssh/authorized_keys.






share|improve this answer























  • Hi Julie, I have done that but I am still getting the same error.

    – Govind Rai
    Feb 5 '17 at 6:21











  • From server, ls -l ~/.ssh/authorized_keys?

    – Julie Pelletier
    Feb 5 '17 at 6:56












  • unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

    – Govind Rai
    Feb 5 '17 at 7:13



















-1














Maybe you can try this command



ssh-copy-id -i identity-file(ex.id_rsa.pub) user@server


You will be asked to enter the password for the account, that means, PasswordAuthentication yes must be set.



The command creates the needed entry in .ssh/authorized_keys.
So after that you should be able to connect to the server via ssh -i identity-file user@server






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342589%2fssh-connection-looking-at-incorrect-private-key-unable-to-connect%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    ssh_exchange_identification: read: Connection reset by peer


    points out to different error. It means that you were able to connect to ssh server but the connection was closed immediately without getting correct "hello" message. Is the server running there? Isn't there some kind of policy where from you can connect? Do you have correct reverse DNS record?



    Your key is correctly in keychain and once you would be able to connect to the correct key will be offered. The other keys touched are default paths and ssh will try to open them always.






    share|improve this answer























    • I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

      – Govind Rai
      Feb 5 '17 at 8:15












    • I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

      – Jakuje
      Feb 5 '17 at 8:16












    • Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

      – Govind Rai
      Feb 5 '17 at 8:18
















    0














    ssh_exchange_identification: read: Connection reset by peer


    points out to different error. It means that you were able to connect to ssh server but the connection was closed immediately without getting correct "hello" message. Is the server running there? Isn't there some kind of policy where from you can connect? Do you have correct reverse DNS record?



    Your key is correctly in keychain and once you would be able to connect to the correct key will be offered. The other keys touched are default paths and ssh will try to open them always.






    share|improve this answer























    • I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

      – Govind Rai
      Feb 5 '17 at 8:15












    • I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

      – Jakuje
      Feb 5 '17 at 8:16












    • Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

      – Govind Rai
      Feb 5 '17 at 8:18














    0












    0








    0







    ssh_exchange_identification: read: Connection reset by peer


    points out to different error. It means that you were able to connect to ssh server but the connection was closed immediately without getting correct "hello" message. Is the server running there? Isn't there some kind of policy where from you can connect? Do you have correct reverse DNS record?



    Your key is correctly in keychain and once you would be able to connect to the correct key will be offered. The other keys touched are default paths and ssh will try to open them always.






    share|improve this answer













    ssh_exchange_identification: read: Connection reset by peer


    points out to different error. It means that you were able to connect to ssh server but the connection was closed immediately without getting correct "hello" message. Is the server running there? Isn't there some kind of policy where from you can connect? Do you have correct reverse DNS record?



    Your key is correctly in keychain and once you would be able to connect to the correct key will be offered. The other keys touched are default paths and ssh will try to open them always.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 5 '17 at 8:05









    JakujeJakuje

    16.6k53256




    16.6k53256












    • I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

      – Govind Rai
      Feb 5 '17 at 8:15












    • I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

      – Jakuje
      Feb 5 '17 at 8:16












    • Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

      – Govind Rai
      Feb 5 '17 at 8:18


















    • I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

      – Govind Rai
      Feb 5 '17 at 8:15












    • I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

      – Jakuje
      Feb 5 '17 at 8:16












    • Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

      – Govind Rai
      Feb 5 '17 at 8:18

















    I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

    – Govind Rai
    Feb 5 '17 at 8:15






    I see. the server is running because callydai.com defintiely works, the reverse DNS record is correct as well. Could you elaborate what you mean by policy? It honestly seems ssh connections are being blocked..

    – Govind Rai
    Feb 5 '17 at 8:15














    I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

    – Jakuje
    Feb 5 '17 at 8:16






    I am not talking about godady server, but ssh server. The policy in your provider can somehow block the connection, both the policy on their side. You would have to talk to godady about that. Or have a look into the server log if you have access to something like that.

    – Jakuje
    Feb 5 '17 at 8:16














    Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

    – Govind Rai
    Feb 5 '17 at 8:18






    Ah of course. my bad. I have no way of accessing the mainframe so I can't actually type any commands. The only thing I can rely on is the cpanel gui where I click SSH and hit enable SSH and I have clicked it just now again, but still getting the same error. The godaddy filesystem doesn't have sshd or ssh error logs... I will have to contact them

    – Govind Rai
    Feb 5 '17 at 8:18














    -1














    You need to add your client's public key in the server's authorized keys. So you append the contents of client:~/.ssh/id_rsa.pub into server:~/.ssh/authorized_keys.






    share|improve this answer























    • Hi Julie, I have done that but I am still getting the same error.

      – Govind Rai
      Feb 5 '17 at 6:21











    • From server, ls -l ~/.ssh/authorized_keys?

      – Julie Pelletier
      Feb 5 '17 at 6:56












    • unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

      – Govind Rai
      Feb 5 '17 at 7:13
















    -1














    You need to add your client's public key in the server's authorized keys. So you append the contents of client:~/.ssh/id_rsa.pub into server:~/.ssh/authorized_keys.






    share|improve this answer























    • Hi Julie, I have done that but I am still getting the same error.

      – Govind Rai
      Feb 5 '17 at 6:21











    • From server, ls -l ~/.ssh/authorized_keys?

      – Julie Pelletier
      Feb 5 '17 at 6:56












    • unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

      – Govind Rai
      Feb 5 '17 at 7:13














    -1












    -1








    -1







    You need to add your client's public key in the server's authorized keys. So you append the contents of client:~/.ssh/id_rsa.pub into server:~/.ssh/authorized_keys.






    share|improve this answer













    You need to add your client's public key in the server's authorized keys. So you append the contents of client:~/.ssh/id_rsa.pub into server:~/.ssh/authorized_keys.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 5 '17 at 4:40









    Julie PelletierJulie Pelletier

    6,98011340




    6,98011340












    • Hi Julie, I have done that but I am still getting the same error.

      – Govind Rai
      Feb 5 '17 at 6:21











    • From server, ls -l ~/.ssh/authorized_keys?

      – Julie Pelletier
      Feb 5 '17 at 6:56












    • unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

      – Govind Rai
      Feb 5 '17 at 7:13


















    • Hi Julie, I have done that but I am still getting the same error.

      – Govind Rai
      Feb 5 '17 at 6:21











    • From server, ls -l ~/.ssh/authorized_keys?

      – Julie Pelletier
      Feb 5 '17 at 6:56












    • unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

      – Govind Rai
      Feb 5 '17 at 7:13

















    Hi Julie, I have done that but I am still getting the same error.

    – Govind Rai
    Feb 5 '17 at 6:21





    Hi Julie, I have done that but I am still getting the same error.

    – Govind Rai
    Feb 5 '17 at 6:21













    From server, ls -l ~/.ssh/authorized_keys?

    – Julie Pelletier
    Feb 5 '17 at 6:56






    From server, ls -l ~/.ssh/authorized_keys?

    – Julie Pelletier
    Feb 5 '17 at 6:56














    unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

    – Govind Rai
    Feb 5 '17 at 7:13






    unfortunately I don't have access to the the mainframe from the godaddy website, but I do have access to the cpanel interface. The authorized_keys file is definitely there in the .ssh folder. it has a permission of 644. and like instructed, I copied the id_rsa.pub from my computer to the authorized_keys file on the server.

    – Govind Rai
    Feb 5 '17 at 7:13












    -1














    Maybe you can try this command



    ssh-copy-id -i identity-file(ex.id_rsa.pub) user@server


    You will be asked to enter the password for the account, that means, PasswordAuthentication yes must be set.



    The command creates the needed entry in .ssh/authorized_keys.
    So after that you should be able to connect to the server via ssh -i identity-file user@server






    share|improve this answer



























      -1














      Maybe you can try this command



      ssh-copy-id -i identity-file(ex.id_rsa.pub) user@server


      You will be asked to enter the password for the account, that means, PasswordAuthentication yes must be set.



      The command creates the needed entry in .ssh/authorized_keys.
      So after that you should be able to connect to the server via ssh -i identity-file user@server






      share|improve this answer

























        -1












        -1








        -1







        Maybe you can try this command



        ssh-copy-id -i identity-file(ex.id_rsa.pub) user@server


        You will be asked to enter the password for the account, that means, PasswordAuthentication yes must be set.



        The command creates the needed entry in .ssh/authorized_keys.
        So after that you should be able to connect to the server via ssh -i identity-file user@server






        share|improve this answer













        Maybe you can try this command



        ssh-copy-id -i identity-file(ex.id_rsa.pub) user@server


        You will be asked to enter the password for the account, that means, PasswordAuthentication yes must be set.



        The command creates the needed entry in .ssh/authorized_keys.
        So after that you should be able to connect to the server via ssh -i identity-file user@server







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 5 '17 at 9:11









        Robert G.Robert G.

        1




        1



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342589%2fssh-connection-looking-at-incorrect-private-key-unable-to-connect%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.