When you run ssh without a login_name argument, it automatically uses your local username as the login_name. for example:
cogan@localhost$ ssh myserver
cogan@myserver's password:
Is there a way to force ssh to prompt for login_name?
|
When you run ssh without a login_name argument, it automatically uses your local username as the login_name. for example:
Is there a way to force ssh to prompt for login_name? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
If you're talking about OpenSSH, the answer is no (you can check the source). As pointed out by @cnicutar, you can use
and then | |||
feedback
|
|
Since
Then, make the script executable:
Make sure you have Then, run it as you would
| |||
|
feedback
|
|
I don't think so -- if it were, it would be through .sshconfig http://linux.die.net/man/5/ssh_config You could try setting User to something illegal to see what it does. | |||
feedback
|