Setting up a user and keys

  1. both fw1 and fw2 # adduser
    Couldn't find /etc/adduser.conf: creating a new adduser configuration file
    Reading /etc/shells
    Enter your default shell: csh ksh nologin sh [ksh]: 
    Your default shell is: ksh -> /bin/ksh
    Default login class: authpf daemon default staff [default]: 
    Enter your default HOME partition: [/home]: 
    Copy dotfiles from: /etc/skel no [/etc/skel]: 
    Send message from file: /etc/adduser.message no [no]: 
    Do not send message
    Prompt for passwords by default (y/n) [y]: 
    Default encryption method for passwords: auto blowfish des md5 old 
    [auto]: 
    Use option ``-silent'' if you don't want to see all warnings and questions.

    Reading /etc/shells
    Check /etc/master.passwd
    Check /etc/group

    Ok, let's go.
    Don't worry about mistakes. There will be a chance later to correct any input.
    Enter username []: jurjen
    Enter full name []: Jurjen Bokma
    Enter shell csh ksh nologin sh [ksh]: 
    Uid [1000]: 
    Login group jurjen [jurjen]: 
    Login group is ``jurjen''. Invite jurjen into other groups: guest no 
    [no]: 
    Login class authpf daemon default staff [default]: 
    Enter password []: 
    Enter password again []: 

    Name:        jurjen
    Password:    ****
    Fullname:    Jurjen Bokma
    Uid:         1000
    Gid:         1000 (jurjen)
    Groups:      jurjen 
    Login Class: default
    HOME:        /home/jurjen
    Shell:       /bin/ksh
    OK? (y/n) [y]: y
    Added user ``jurjen''
    Copy files from /etc/skel to /home/jurjen
    Add another user? (y/n) [y]: n
    Goodbye!

  2. jurjen@PC:~$ ssh-copy-id -i ~/.ssh/id_dsa.pub root@10.0.7.252
    root@10.0.7.252's password: 
    Now try logging into the machine, with "ssh 'root@10.0.7.252'", and check in:

    .ssh/authorized_keys

    to make sure we haven't added extra keys that you weren't expecting.

    jurjen@intra202:~$ ssh root@10.0.7.252
    Last login: Tue Nov  2 10:06:26 2010 from <snip>

    # ^D

  3. Now repeat the previous step for user 'jurjen', and for both 'jurjen' and 'root' on the other firewall.