blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.08k stars 565 forks source link

SSH does not support "ssh -l login name" #1981

Closed ctschach closed 4 months ago

ctschach commented 4 months ago

Checklist

Configuration

Latest iOS version downloaded from the App Store...

Describe the bug

If you look at the possible parameters for ssh on various unix distributions, you'll always see that there always:

ssh [-l login_name]

The current version of ssh used in blink only support the

ssh username@domain.com

approch. However, for compatibility aspects it would be great to also support parameters like:

ssh domain.com -l username

carloscabanero commented 4 months ago

We do have that flag and it is used in some configurations. Can you do ssh -l <user> -G <host> and check what the configured output is?

image

ctschach commented 4 months ago

Oh, you are right. Looks like I was running an older version. My fault. After updating to the latest from the App Store, I can now also use the "-l" version.

Thank and sorry....

carloscabanero commented 4 months ago

No worries, that's what we are here for.

PS: It looks like you triggered a bug with parameters at the end of the command (due to a change in the Swift arguments parser). New versions should allow you to have parameters everywhere.