SSH to home ubuntu, from different network











up vote
0
down vote

favorite












I have ubuntu 16.04 laptop, And I want to ssh it from a different network. my router is tp-link AC750. I enabled port forwarding, as in the image enter image description here



I found my public ip address using google and tried to login remotely, but not working. How can I troubleshoot this?



I modified to port 2222. now getting the following error while trying to connect:



debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer









share|improve this question




















  • 2




    When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
    – honza-kasik
    Nov 24 at 17:25






  • 2




    Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
    – PerlDuck
    Nov 24 at 17:32






  • 2




    try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
    – Zina
    Nov 24 at 17:39










  • @PerlDuck : I checked. ssh is running.
    – thomachan
    Nov 24 at 18:20










  • @Zina : that moved me a little forward: now I am getting a different error: see edit
    – thomachan
    Nov 24 at 18:21















up vote
0
down vote

favorite












I have ubuntu 16.04 laptop, And I want to ssh it from a different network. my router is tp-link AC750. I enabled port forwarding, as in the image enter image description here



I found my public ip address using google and tried to login remotely, but not working. How can I troubleshoot this?



I modified to port 2222. now getting the following error while trying to connect:



debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer









share|improve this question




















  • 2




    When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
    – honza-kasik
    Nov 24 at 17:25






  • 2




    Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
    – PerlDuck
    Nov 24 at 17:32






  • 2




    try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
    – Zina
    Nov 24 at 17:39










  • @PerlDuck : I checked. ssh is running.
    – thomachan
    Nov 24 at 18:20










  • @Zina : that moved me a little forward: now I am getting a different error: see edit
    – thomachan
    Nov 24 at 18:21













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have ubuntu 16.04 laptop, And I want to ssh it from a different network. my router is tp-link AC750. I enabled port forwarding, as in the image enter image description here



I found my public ip address using google and tried to login remotely, but not working. How can I troubleshoot this?



I modified to port 2222. now getting the following error while trying to connect:



debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer









share|improve this question















I have ubuntu 16.04 laptop, And I want to ssh it from a different network. my router is tp-link AC750. I enabled port forwarding, as in the image enter image description here



I found my public ip address using google and tried to login remotely, but not working. How can I troubleshoot this?



I modified to port 2222. now getting the following error while trying to connect:



debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer






networking ssh port-forwarding






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 18:22

























asked Nov 24 at 17:24









thomachan

216




216








  • 2




    When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
    – honza-kasik
    Nov 24 at 17:25






  • 2




    Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
    – PerlDuck
    Nov 24 at 17:32






  • 2




    try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
    – Zina
    Nov 24 at 17:39










  • @PerlDuck : I checked. ssh is running.
    – thomachan
    Nov 24 at 18:20










  • @Zina : that moved me a little forward: now I am getting a different error: see edit
    – thomachan
    Nov 24 at 18:21














  • 2




    When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
    – honza-kasik
    Nov 24 at 17:25






  • 2




    Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
    – PerlDuck
    Nov 24 at 17:32






  • 2




    try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
    – Zina
    Nov 24 at 17:39










  • @PerlDuck : I checked. ssh is running.
    – thomachan
    Nov 24 at 18:20










  • @Zina : that moved me a little forward: now I am getting a different error: see edit
    – thomachan
    Nov 24 at 18:21








2




2




When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
– honza-kasik
Nov 24 at 17:25




When firing up ssh, use -v flag for verbose output. You can then clearly see what exactly went wrong.
– honza-kasik
Nov 24 at 17:25




2




2




Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
– PerlDuck
Nov 24 at 17:32




Might be a silly question but: do you have an sshd (like openssh-server) running on your laptop? I ask because it is not installed by default.
– PerlDuck
Nov 24 at 17:32




2




2




try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
– Zina
Nov 24 at 17:39




try with another port on external, many routers don't forward external 22 (also 80, 443). try with eg 2222 forward to 22 on your computer and you MUST test it outside your router network, you can't test it from internal. of course like @PerlDuck said, check if your destination is listening on port 22 from all networks netstat -anutp grep :22 to check.
– Zina
Nov 24 at 17:39












@PerlDuck : I checked. ssh is running.
– thomachan
Nov 24 at 18:20




@PerlDuck : I checked. ssh is running.
– thomachan
Nov 24 at 18:20












@Zina : that moved me a little forward: now I am getting a different error: see edit
– thomachan
Nov 24 at 18:21




@Zina : that moved me a little forward: now I am getting a different error: see edit
– thomachan
Nov 24 at 18:21















active

oldest

votes











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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1095701%2fssh-to-home-ubuntu-from-different-network%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095701%2fssh-to-home-ubuntu-from-different-network%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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b