Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Setting a default ssh user

    Does any one know how to set a default login for a given machine using ssh?

    ie, I would like to do the follwoing

    ssh == ssh machine

    I know how to use /etc/hosts to set "" == to "machine", I just don't know how to make "foo" the defualt user.


  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    See the manpages for ssh_config(5).

    It looks like you can specify this with a User foo directive in your ssh per-user config file (~/.ssh/config).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts