Bug Report - System.IndexOutOfRangeException when try to launch ssh session #3650

Closed
opened 2026-01-30 23:26:30 +00:00 by claunia · 5 comments
Owner

Originally created by @flenoir on GitHub (Aug 29, 2019).

Environment

Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0 

No other software?

Steps to reproduce

Just open Windows Terminal and launch ssh command : ssh login@ipadress

Expected behavior

expected to connect to ssh on remote computer

Actual behavior

having an error 3 times :

Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again.
Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again.
Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) eolementhe@10.0.0.125: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

Originally created by @flenoir on GitHub (Aug 29, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 No other software? ``` # Steps to reproduce Just open Windows Terminal and launch ssh command : ssh login@ipadress # Expected behavior expected to connect to ssh on remote computer # Actual behavior having an error 3 times : Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again. Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again. Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) eolementhe@10.0.0.125: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-30 23:26:31 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 29, 2019):

Does this repro with both the Windows Terminal and the built-in console (by launching cmd.exe or powershell.exe)?

This seems more like an issue for the openssh repo that a terminal issue IMO.

@zadjii-msft commented on GitHub (Aug 29, 2019): Does this repro with both the Windows Terminal and the built-in console (by launching cmd.exe or powershell.exe)? This seems more like an issue for [the openssh repo](https://github.com/PowerShell/Win32-OpenSSH/issues) that a _terminal_ issue IMO.
Author
Owner

@flenoir commented on GitHub (Aug 29, 2019):

No , issue only occurs on Windows Terminal, when using cmd.exe, ssh connection is working

@flenoir commented on GitHub (Aug 29, 2019): No , issue only occurs on Windows Terminal, when using cmd.exe, ssh connection is working
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 29, 2019):

What about powershell.exe?

@DHowett-MSFT commented on GitHub (Aug 29, 2019): What about _powershell.exe_?
Author
Owner

@flenoir commented on GitHub (Aug 30, 2019):

On powershell i have same error and it says "unable to start ssh-agent service, error :1058"

@flenoir commented on GitHub (Aug 30, 2019): On powershell i have same error and it says "unable to start ssh-agent service, error :1058"
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 30, 2019):

If you have the same error with powershell outside of Windows Terminal, it is probably a Powershell or a Win32-OpenSSH issue. Sorry!

@DHowett-MSFT commented on GitHub (Aug 30, 2019): If you have the same error with powershell outside of Windows Terminal, it is probably a Powershell or a Win32-OpenSSH issue. Sorry!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3650