question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't connect to my local SSH Server

See original GitHub issue

Renci.SshNet.Common.SshConnectionException: The connection was closed by the server: Change of username or service not allowed: (sftp,ssh-connection) -> (wlopez,ssh-connection) (ProtocolError).

Testing on my terminal works fine.

Something to do with RSA key ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
JasminMarinellicommented, Sep 10, 2020

Renci.SshNet.Common.SshConnectionException: The connection was closed by the server: Change of username or service not allowed: (sftp,ssh-connection) -> (wlopez,ssh-connection) (ProtocolError). Testing on my terminal works fine. Something to do with RSA key ?

Same problem for me, with the same exception message. Thats work , If I use FileZilla…

Ok, I found the problem …

(sftp,ssh-connection) -> (wlopez,ssh-connection) (ProtocolError).` Change the sftp username for the real user i.e. : > (wlopez,ssh-connection) -> (wlopez,ssh-connection)

0reactions
IgorMilaveccommented, Feb 11, 2022

Seems to be resolved, closing due to inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

openssh-server can't connect remotely
Hard to tell, if you can connect on the local machine the ssh server is working. It is most likely a problem with...
Read more >
How to Troubleshoot SSH Connectivity Issues
When connecting an SSH client to an SSH server, the first step is establishing basic network connectivity. This article covers how to ...
Read more >
How to Fix the SSH “Connection Refused” Error
If SSH isn't installed on your server.​​ Install an SSH tool such as OpenSSH on the server you want to connect to using...
Read more >
How to Troubleshoot SSH Connection Issues
Connection Refused · Verify that the host IP address is correct · Verify the firewall rules, check the inbound rules allowed by the...
Read more >
How to Fix the SSH "Connection Refused" Error
Typos or incorrect credentials are common reasons for a refused SSH connection. Make sure you are not mistyping the username or password. Then, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found