SSH: succeed with XShell, but fail with ssh command

CCC 21 Reputation points
2023-03-18T01:55:37.6866667+00:00

I am using Windows 10. I need to SSH to another Windows server via FRP.

In XShell it was smooth. I set the FRP server IP and port, together with my username and password, and then I successfully logged in.

But when I try this with ssh command in Powershell, it's a failure.

I use this command (an example):

ssh my_username@1.2.3.4 -p 12345

it responds:

ssh: Could not resolve hostname my_username: \262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243

But my_username is not a hostname.

After this, it keeps responding about my_username even if I did not mention this.

For example, if I type:

ssh 1.2.3.4 -p 12345

It still says:

ssh: Could not resolve hostname my_user_name: \262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243

I tried this on a Windows 10 and a Windows 11 computer, but both are the same.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2023-03-18T13:33:10.52+00:00

    What is FRP?

    Are you using ssh.exe from the Windows SSH Client feature?

    This is Win11. SSH connects and I get prompted for the password.

    User's image

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.