Not able to connect SSH in windows terminal #16883

Closed
opened 2026-01-31 05:26:03 +00:00 by claunia · 6 comments
Owner

Originally created by @Rajeshsahoo12 on GitHub (Feb 25, 2022).

Have installed windows terminal from microsoft market place. And tried using ssh ubuntu@ip.

But it gives me error mentioned below :-

ubuntu@ip: Permission denied (publickey).

But for same ip I am able to use SSH connection using termius application & WINSCP which uses putty converted .ppk file for authentication.

As I have generated ssh keys for my server ssh connection.

Originally created by @Rajeshsahoo12 on GitHub (Feb 25, 2022). Have installed windows terminal from microsoft market place. And tried using **ssh ubuntu@ip**. But it gives me error mentioned below :- **ubuntu@ip: Permission denied (publickey).** But for same ip I am able to use SSH connection using termius application & WINSCP which uses putty converted .ppk file for authentication. As I have generated ssh keys for my server ssh connection.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:26:03 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 25, 2022):

Is the path to ssh.exe the same in the Windows Terminal as it is when you run it in termius?

@zadjii-msft commented on GitHub (Feb 25, 2022): Is the path to `ssh.exe` the same in the Windows Terminal as it is when you run it in termius?
Author
Owner

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022):

Not sure about that. How to check path for both..? Termius & windows terminal..?

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022): Not sure about that. How to check path for both..? Termius & windows terminal..?
Author
Owner

@zadjii-msft commented on GitHub (Feb 25, 2022):

That kinda depends on the shell you're using:

  • for Command Prompt (cmd.exe): where ssh.exe
  • For PowerShell (powershell.exe, pwsh.exe): Get-command ssh
@zadjii-msft commented on GitHub (Feb 25, 2022): That kinda depends on the shell you're using: * for Command Prompt (`cmd.exe`): `where ssh.exe` * For PowerShell (`powershell.exe`, `pwsh.exe`): `Get-command ssh`
Author
Owner

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022):

On windows terminal I am using command prompt. And when I run where ssh.exe. Its gives below location path :-

C:\Windows\System32\OpenSSH\ssh.exe

For TERMIUS application below is target path :-

C:\Users\Rajesh Sahoo\AppData\Local\Programs\Termius\Termius.exe

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022): On windows terminal I am using command prompt. And when I run **where ssh.exe**. Its gives below location path :- **C:\Windows\System32\OpenSSH\ssh.exe** For TERMIUS application below is target path :- **C:\Users\Rajesh Sahoo\AppData\Local\Programs\Termius\Termius.exe**
Author
Owner

@zadjii-msft commented on GitHub (Feb 25, 2022):

Ah okay yea, Termius isn't a general-purpose terminal emulator, it's a dedicated SSH client. I'd reckon that they're probably shipping their own copy of SSH.

I'd follow up with https://github.com/PowerShell/Win32-OpenSSH/issues, who owns ssh.exe.

@zadjii-msft commented on GitHub (Feb 25, 2022): Ah okay yea, Termius isn't a general-purpose terminal emulator, it's a dedicated SSH client. I'd reckon that they're probably shipping their own copy of SSH. I'd follow up with https://github.com/PowerShell/Win32-OpenSSH/issues, who owns ssh.exe.
Author
Owner

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022):

@zadjii-msft Thanks alot. I made it worked. With the help of below youtube tutorial & yours.

https://www.youtube.com/watch?v=ORks4JXxJp0

Have made my ssh connection as default profile for new tab open & windows terminal open at first.

image

@Rajeshsahoo12 commented on GitHub (Feb 25, 2022): @zadjii-msft Thanks alot. I made it worked. With the help of below youtube tutorial & yours. **https://www.youtube.com/watch?v=ORks4JXxJp0** Have made my ssh connection as default profile for new tab open & windows terminal open at first. ![image](https://user-images.githubusercontent.com/54216637/155803323-bcb7e3a0-d83b-4670-b30f-184a30c7da92.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16883