Re:Non-interactive SSH password authentication
by squeaky-clean on Monday December 25, 2023 @10:03AM
(#38763135)
Honest question, unless it's mandated by your employer, or you don't personally care, why would you ever choose to use a service that doesn't offer that?
[ Parent
| on HN ]
Re:Non-interactive SSH password authentication
by daneel_w on Monday December 25, 2023 @10:08AM
(#38763187)
You may be in a position where you must employ and interact with networked equipment that does not support pubkey authentication.
Re:Non-interactive SSH password authentication
by wkat4242 on Monday December 25, 2023 @10:41AM
(#38763476)
Yeah this is why fido2 doesn't work either. Most embedded ssh implementations don't support it.
Re:Non-interactive SSH password authentication
by tialaramex on Monday December 25, 2023 @01:01PM
(#38764626)
Public key authentication is actually a Must Implement for SSHv2. Since SSHv1 is long obsolete, any gear that doesn't have pubkey doesn't actually have a de jure SSH implementation.
"All implementations MUST support this method"
Re:Non-interactive SSH password authentication
by wtallis on Monday December 25, 2023 @01:16PM
(#38764738)
That doesn't mean it's always easy to install and manage keys. For example, the author of the passh tool recommended by this post somehow managed to come away with the impression that OpenWRT's ssh server only supports password authentication.
Re:Non-interactive SSH password authentication
by varenc on Monday December 25, 2023 @03:43PM
(#38765936)
Another example: Ubiquiti gateway consoles like the UDM-Pro. You can install an SSH key but these are erased on reboot. So after every reboot I have a script that uses the SSH user password to re-install an SSH key but this can’t be relied upon and I haven’t found a way to make an SSH key persist.
Re:Non-interactive SSH password authentication
by a_subsystem on Tuesday December 26, 2023 @12:01AM
(#38769053)
Re:Non-interactive SSH password authentication
by justsomehnguy on Monday December 25, 2023 @02:12PM
(#38765201)
Dell PowerConnect 5500 series has a very picular SSH implementation, which could be described as 'allow all SSH proxy for telnet'
Re:Non-interactive SSH password authentication
by tsimionescu on Monday December 25, 2023 @01:36PM
(#38764879)
That doesn't mean that a device that doesn't offer pub key storage is not accessible over SSH.
Re:Non-interactive SSH password authentication
by jiveturkey on Monday December 25, 2023 @11:44PM
(#38768989)
And if you don't, anyway? Do you not get to use the SSH(TM) logo on your product? You're reading MUST a bit too literally.
Re:Non-interactive SSH password authentication
by tialaramex on Thursday December 28, 2023 @07:20PM
(#38800390)
Exactly as I wrote, it means what you've got isn't a de jure SSH implementation.
Do with that whatever you will.
Re:Non-interactive SSH password authentication
by vbernat on Monday December 25, 2023 @10:19AM
(#38763299)
There are not many network vendors. Check the link in the first footnote for an example how Cisco, the leader in the field, makes it difficult to deploy SSH keys. This is getting better. For example, Juniper (another network vendor) now supports SSH certificates.
Re:Non-interactive SSH password authentication
by RedShift1 on Monday December 25, 2023 @10:39AM
(#38763464)
I have no idea what's going on in the footnote, but deploying SSH keys on Cisco equipment is like 3 commands (conf t, user x, ssh something something) to deploy public keys, not hard at all.
Re:Non-interactive SSH password authentication
by bnny on Monday December 25, 2023 @11:01AM
(#38763646)
It's been a few years, but this requires manually deploying keys and adding/removing users on all your devices. Most use TACACS+ and/or Radius to centrally manage users, which don't support keys in that way (or at least didn't the last time I worked with them.)
Re:Non-interactive SSH password authentication
by vbernat on Monday December 25, 2023 @11:16AM
(#38763755)
There is an implementation with an extension: https://github.com/MarcJHuber/event-driven-servers/wiki/TACA.... But I don't know if there are any supported clients.
Another possibility would be to use CA certificates for authentication and only TACACS+ for authorization and accounting. Juniper now supports CA certificates. Cisco may in 10 years.
Re:Non-interactive SSH password authentication
by vbernat on Monday December 25, 2023 @10:49AM
(#38763544)
Not on IOS XR: https://vincent.bernat.ch/en/blog/2020-syncing-ssh-keys-iosx.... The commands you mention are for NXOS.
Re:Non-interactive SSH password authentication
by nine_k on Monday December 25, 2023 @10:07AM
(#38763186)
It may be a box configured and serviced by a vendor, and your org may be short on IT staff.
Re:Non-interactive SSH password authentication
by infotogivenm on Monday December 25, 2023 @01:35PM
(#38764875)
One good example is bringing up equipment that comes out-the-box with a default password. This is common on BMCs for example, and you have to initially provision things somehow.