SSH connection failure: processing of forwarded request fails on known_host key

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











up vote
0
down vote

favorite
1












When I attempt a SSH connection between client C and server S (both on the same LAN) the client looks up the server's key in the client user's known_hosts file.



In the usual case for connection attempts, if the server's key is not found, the client is prompted to accept the server's key into the user's known_hosts file . If the key is found then the connection process continues.



However I have a situation where if the connection request is forwarded through the LAN router/modem the lookup for the server's key fails even though the target server's key is there, and the client is not prompted. Instead the attempt is refused with Connection reset by <IP of router>



Connect success to the LAN host directly using :



ssh -vvv stephen@acer 


Connect failing to the LAN router to forward to acer using:



ssh -vvv stephen@michigan


This has just started happening. Any idea why?



  • Is the server key altered by the router?


  • Is the router replacing the target server's key with its own?


  • Is there some way of getting a look at the key that's being passed. I am calling with ssh -vvv have the SSH logging set to VERBOSE but see nothing I recognize as useful


System info:



Server host Ubuntu 18.04: Openssh-server/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64 
Tested with clients:

- Ubuntu 18.10: openssh-client/cosmic,now 1:7.7p1-4 amd64
- Ubuntu 18.04: openssh-client/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64
- Debian 9.5: openssh-client/stable,now 1:7.4p1-10+deb9u4 amd64

Modem: Arris Xb6


Update to: SSH forwarded through modem recently started failing: update










share|improve this question























  • What does the ssh command you are passing look like?
    – Michael Prokopec
    Nov 24 at 21:04










  • @MichaelProkopec I have added the commands to the question. Thank you.
    – Stephen Boston
    Nov 24 at 23:40










  • You say forwarding to acer, are you saying that you are outside the LAN at that point.
    – Michael Prokopec
    Nov 24 at 23:48










  • @MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
    – Stephen Boston
    Nov 25 at 0:02






  • 1




    Check out rui's post: serverfault.com/questions/210408/…
    – Michael Prokopec
    Nov 25 at 0:09














up vote
0
down vote

favorite
1












When I attempt a SSH connection between client C and server S (both on the same LAN) the client looks up the server's key in the client user's known_hosts file.



In the usual case for connection attempts, if the server's key is not found, the client is prompted to accept the server's key into the user's known_hosts file . If the key is found then the connection process continues.



However I have a situation where if the connection request is forwarded through the LAN router/modem the lookup for the server's key fails even though the target server's key is there, and the client is not prompted. Instead the attempt is refused with Connection reset by <IP of router>



Connect success to the LAN host directly using :



ssh -vvv stephen@acer 


Connect failing to the LAN router to forward to acer using:



ssh -vvv stephen@michigan


This has just started happening. Any idea why?



  • Is the server key altered by the router?


  • Is the router replacing the target server's key with its own?


  • Is there some way of getting a look at the key that's being passed. I am calling with ssh -vvv have the SSH logging set to VERBOSE but see nothing I recognize as useful


System info:



Server host Ubuntu 18.04: Openssh-server/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64 
Tested with clients:

- Ubuntu 18.10: openssh-client/cosmic,now 1:7.7p1-4 amd64
- Ubuntu 18.04: openssh-client/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64
- Debian 9.5: openssh-client/stable,now 1:7.4p1-10+deb9u4 amd64

Modem: Arris Xb6


Update to: SSH forwarded through modem recently started failing: update










share|improve this question























  • What does the ssh command you are passing look like?
    – Michael Prokopec
    Nov 24 at 21:04










  • @MichaelProkopec I have added the commands to the question. Thank you.
    – Stephen Boston
    Nov 24 at 23:40










  • You say forwarding to acer, are you saying that you are outside the LAN at that point.
    – Michael Prokopec
    Nov 24 at 23:48










  • @MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
    – Stephen Boston
    Nov 25 at 0:02






  • 1




    Check out rui's post: serverfault.com/questions/210408/…
    – Michael Prokopec
    Nov 25 at 0:09












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





When I attempt a SSH connection between client C and server S (both on the same LAN) the client looks up the server's key in the client user's known_hosts file.



In the usual case for connection attempts, if the server's key is not found, the client is prompted to accept the server's key into the user's known_hosts file . If the key is found then the connection process continues.



However I have a situation where if the connection request is forwarded through the LAN router/modem the lookup for the server's key fails even though the target server's key is there, and the client is not prompted. Instead the attempt is refused with Connection reset by <IP of router>



Connect success to the LAN host directly using :



ssh -vvv stephen@acer 


Connect failing to the LAN router to forward to acer using:



ssh -vvv stephen@michigan


This has just started happening. Any idea why?



  • Is the server key altered by the router?


  • Is the router replacing the target server's key with its own?


  • Is there some way of getting a look at the key that's being passed. I am calling with ssh -vvv have the SSH logging set to VERBOSE but see nothing I recognize as useful


System info:



Server host Ubuntu 18.04: Openssh-server/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64 
Tested with clients:

- Ubuntu 18.10: openssh-client/cosmic,now 1:7.7p1-4 amd64
- Ubuntu 18.04: openssh-client/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64
- Debian 9.5: openssh-client/stable,now 1:7.4p1-10+deb9u4 amd64

Modem: Arris Xb6


Update to: SSH forwarded through modem recently started failing: update










share|improve this question















When I attempt a SSH connection between client C and server S (both on the same LAN) the client looks up the server's key in the client user's known_hosts file.



In the usual case for connection attempts, if the server's key is not found, the client is prompted to accept the server's key into the user's known_hosts file . If the key is found then the connection process continues.



However I have a situation where if the connection request is forwarded through the LAN router/modem the lookup for the server's key fails even though the target server's key is there, and the client is not prompted. Instead the attempt is refused with Connection reset by <IP of router>



Connect success to the LAN host directly using :



ssh -vvv stephen@acer 


Connect failing to the LAN router to forward to acer using:



ssh -vvv stephen@michigan


This has just started happening. Any idea why?



  • Is the server key altered by the router?


  • Is the router replacing the target server's key with its own?


  • Is there some way of getting a look at the key that's being passed. I am calling with ssh -vvv have the SSH logging set to VERBOSE but see nothing I recognize as useful


System info:



Server host Ubuntu 18.04: Openssh-server/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64 
Tested with clients:

- Ubuntu 18.10: openssh-client/cosmic,now 1:7.7p1-4 amd64
- Ubuntu 18.04: openssh-client/bionic-updates,bionic-security,now 1:7.6p1-4ubuntu0.1 amd64
- Debian 9.5: openssh-client/stable,now 1:7.4p1-10+deb9u4 amd64

Modem: Arris Xb6


Update to: SSH forwarded through modem recently started failing: update







openssh port-forwarding






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 23:39

























asked Nov 24 at 19:53









Stephen Boston

1848




1848











  • What does the ssh command you are passing look like?
    – Michael Prokopec
    Nov 24 at 21:04










  • @MichaelProkopec I have added the commands to the question. Thank you.
    – Stephen Boston
    Nov 24 at 23:40










  • You say forwarding to acer, are you saying that you are outside the LAN at that point.
    – Michael Prokopec
    Nov 24 at 23:48










  • @MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
    – Stephen Boston
    Nov 25 at 0:02






  • 1




    Check out rui's post: serverfault.com/questions/210408/…
    – Michael Prokopec
    Nov 25 at 0:09
















  • What does the ssh command you are passing look like?
    – Michael Prokopec
    Nov 24 at 21:04










  • @MichaelProkopec I have added the commands to the question. Thank you.
    – Stephen Boston
    Nov 24 at 23:40










  • You say forwarding to acer, are you saying that you are outside the LAN at that point.
    – Michael Prokopec
    Nov 24 at 23:48










  • @MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
    – Stephen Boston
    Nov 25 at 0:02






  • 1




    Check out rui's post: serverfault.com/questions/210408/…
    – Michael Prokopec
    Nov 25 at 0:09















What does the ssh command you are passing look like?
– Michael Prokopec
Nov 24 at 21:04




What does the ssh command you are passing look like?
– Michael Prokopec
Nov 24 at 21:04












@MichaelProkopec I have added the commands to the question. Thank you.
– Stephen Boston
Nov 24 at 23:40




@MichaelProkopec I have added the commands to the question. Thank you.
– Stephen Boston
Nov 24 at 23:40












You say forwarding to acer, are you saying that you are outside the LAN at that point.
– Michael Prokopec
Nov 24 at 23:48




You say forwarding to acer, are you saying that you are outside the LAN at that point.
– Michael Prokopec
Nov 24 at 23:48












@MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
– Stephen Boston
Nov 25 at 0:02




@MichaelProkopec No For both those requests, I am inside the LAN on another host i.e. a host other than acer (hostname vaio). I don't think this is a loopback problem because I can access other services on acer in this way. SSH is the only service that has given me connection problems this far.
– Stephen Boston
Nov 25 at 0:02




1




1




Check out rui's post: serverfault.com/questions/210408/…
– Michael Prokopec
Nov 25 at 0:09




Check out rui's post: serverfault.com/questions/210408/…
– Michael Prokopec
Nov 25 at 0:09















active

oldest

votes











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',
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%2f483915%2fssh-connection-failure-processing-of-forwarded-request-fails-on-known-host-key%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
















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f483915%2fssh-connection-failure-processing-of-forwarded-request-fails-on-known-host-key%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

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?