📎 AI Summary:
The thread discusses a user's issue connecting to a remote Ubuntu server via SSH on Windows 10 using PowerShell, resulting in a "Permission denied" error despite successful attempts with MobaXterm. Experts suggest troubleshooting with verbose SSH output and note that SSH is a binary invoked from PowerShell, not inherently related to PowerShell itself. The user learns to locate or create the SSH configuration file in Windows to enable password authentication, with assistance indicating the recommended file path.

a common noob

New Member
Joined
Jun 2, 2022
Messages
2
Thread Author #1
I tried to connect to a remote server (Ubuntu 20.04 LTS x64) on windows 10 through PowerShell. I used the command 'ssh root@remote-ip-address', and after I entered the cleartext password of the remote, all it said was 'Permission denied, please try again.'

However, I succeeded following the same route in mobaxterm.

What caused the error in PowerShell? How should I fix it?
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
You're calling a binary (ssh) from powershell, so the error isn't powershell. Try adding the verbose switch to get more details
 

a common noob

New Member
Joined
Jun 2, 2022
Messages
2
Thread Author #3
You're calling a binary (ssh) from powershell, so the error isn't powershell. Try adding the verbose switch to get more details
It seems that I should change the configuration to 'PasswordAuthentication yes', but I can't even find the config file in windows (with the help of google).
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
C:\Users\<username>\.ssh\config is the file location. You'll likely need to create the directory and file.
 

Solution