skip navigation

This page looks better in modern browsers. Please upgrade.

Brown Home Brown Home Brown Home Brown CS

S/Key Reference

Once you are logged into in

Because in is the machine that users must go through to remotely log in to the CS department, it tends to have many users logged in at any given time. To minimize the load on this heavily used machine, there is a limited set of commands which users can run. The list of available commands can be obtained by typing "?" or "help" as shown:
% ssh in
********************************************************************
     Brown University Computer Science Department Telnet Server
             Type "?" or "help" for a list of commands
********************************************************************
in: ?
 
>> Brown University Computer Science Department Telnet Server
>> Commands may be abbreviated to the shortest unique string

     ssh ~ Establish a remote login session to a specified host
           Usage: ssh hostname
  slogin ~ Establish a remote login session to a specified host
           Usage: slogin hostname
      lw ~ Display SunLab console logins
           Usage: lw [-fntilbh]
 keyinit ~ Change or initialize S/Key authentication system password
           Usage: keyinit [-s]
 keyinfo ~ Display current S/Key sequence number and seed
           Usage: keyinfo
     key ~ Compute responses to S/Key challenges
           Usage: key [-n count] sequence seed
keyprint ~ Print listing of S/Key passwords
           Usage: keyprint [-Pprinter]
     lpq ~ Display queue of printer jobs
           Usage: lpq [-Pprinter]
    help ~ Display listing of commands
           Usage: help [command ...]
       ? ~ Display listing of commands
           Usage: ? [command ...]
    exit ~ Exit shell and logout
           Usage: exit
      ps ~ List processes owned by you
           Usage: ps
    kill ~ Kill utility to terminate your processes
           Usage: kill [kill options]

in:
Note that the key, keyprint, and lpq commands are only available if you are logged in from an inside machine. If you are remotely logged in, you cannot run these three commands. Here is a more detailed description of each command:
  • ssh: This is the most important command to use on in. Because of the limited capabilities of in, you will not be able to do any real work on this machine. It is therefore necessary to create a remote login session on another machine in the department:
    in: ssh cslab4d
    cslab4d%
    

  • slogin: Same as ssh. Just a different name.

  • lw: The lw command shows which machines in the Sun Lab have users on console. This is a useful way to pick a machine which may be free at the moment. There are several useful options to lw, which you can see with lw -h.

  • keyinit: As described in Using s/key keyinit can be used to initialize your account with the s/key program. keyinit should ONLY be run if you are logged in from a machine inside the department. The only exception is if you use the -s switch, as described in the s/key FAQ.

  • keyinfo: The keyinfo(1) command tells you the next s/key challenge (count and seed) you will get when you try to log in remotely:
    in: keyinfo
    97 in353402
    in:
    
    The output from keyinfo can be used with your s/key software to generate one-time passwords.

  • key: The key(1) command is the UNIX version of local s/key software. It is used to compute one-time passwords from a given count and seed. The -n option specifies how many keys to generate, as follows:
    in: key -n 3 97 in353402
    95: BLUR EAR TOOT COLD ROLL ACME
    96: SHE HIDE NAT MOON NASH BODY
    97: OLIN AMES FATE MADE TOUT BUD
    

  • keyprint: Prints a list of 100 one-time passwords to the specified printer, as described in Using s/key.

  • lpq: The lpq(1) command shows the queue of jobs on a specified printer. This is useful when you want to run keyprint and would like to find a printer with a short queue.

  • help or ? : With no arguments, displays the list above. Given a command as an argument, displays the short description of the command.

  • exit: Logs you out of in.

  • ps: List processes owned by you.

  • kill: Kill utility to terminate your processes.

Page Owner: Tstaff Account Last Modified: Mon Jun 30 07:21:52 2008