Find the answer to your Linux question:
Results 1 to 2 of 2
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 foo@machine.school.edu == ssh machine I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    24

    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 foo@machine.school.edu == ssh machine

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

    TIA

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    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
  •