0 votes
by (120 points)

Does Rebex support the ability of connecting to a server that requires a username before prompting for the private key; no password being required?

As an example with OpenSSH:
The following is how the connection is setup:
ssh -l username server

It seems like Rebex is simply doing this:
ssh server

1 Answer

0 votes
by (147k points)

From the SSH protocol's point-of-view, it is actually impossible to attempt authentication without specifying a username. Therefore, of course, Rebex libraries do support this - otherwise they would not work at all.

If you do "ssh server" with OpenSSH's client, it simply uses the current user's username and sends that to the server. You can easily see this if you enable debug log: "ssh -v server".

With Rebex API, you specify the username in the Login method. Even the parameter-less Login method overload invokes AuthenticationRequest first to ask for the username.

...