wiki:xo_serial_access

Version 14 (modified by Jamie McClelland, 11 years ago) (diff)

--

In XO/Bandcon Serial Console access

Note: if you are trying to connect to a server in our Telehouse facility, see our Telehouse serial access page.

More detailed instructions are coming!

Physical Setup

Console server: paley.mayfirst.org

  • Port 1: pianeta (asm)
  • Port 2: axiom (CritPath)
  • Port 3: naomi.mayfirst.org
  • Port 4: bufflehead (Riseup)
  • Port 5: ottorene.mayfirst.org
  • Port 6: roy.mayfirst.org
  • Port 7: pietri.mayfirst.org
  • Port 8: odetta.mayfirst.org

Connecting to your serial console

ssh -p PORTNUMBER SERVERNAME-console@b.console.mayfirst.org

Replace PORTNUMBER with 3000 plus the number of your port. For example:

ssh -p 3001 pianeta-console@b.console.mayfirst.org

If b.console.mayfirst.org doesn't work, try paley.mayfirst.org for the hostname instead.

After logging in, you typically need to hit the enter key to get a login prompt on your console.

Access is available via password or key based auth.

If you are using openssh, you can end your session by typing: <enter> ~ . (that is, hit the enter key, hold down shift while hitting the tilde key, then press period).

Connecting to paley as sysadmin

You can also connect directly via paley with:

ssh sysadmin@paley.mayfirst.org
connect direct deviceport <servername>

To exit from a direction connect, type ctrl-A (that's control and shift-a).

sysrq

To get the sysrq menu (for raising skinny elephants), type ctrl-B.

Creating a new serial line/user

These need to be improved - not sure how to do this via the command line - so far I'm doing this via the web interface at https://paley.mayfirst.org.

  1. Configure the device by going to Devices -> Device Port. Then select the port you want to configure and click configure
    • Provide a name (after the server name)
    • Check the box that says ssh in
    • Change Baud to 115200
  2. Configure the user by doing to User Authentication -> Local/Remote Users and click Add/Edit User
    • Enter a login (servername-console)
    • Create a password
    • Change the listen, data, and clear port settings to just the number of the port they should have access to
    • Enable web access
  3. Configure ssh key access
    • Place the user's public key on a server accessible by password-based scp
    • Edit the username portion of the ssh key line (that last part - separated by a space from the key). Change the username to be the username they will be logging in as on the console server. The portion after the @ sign can be anything (but must be included).
    • Via the web interface, click User Authentication -> SSH users
    • Leave host blank. Enter the target username in the user field
    • Fill out all fields in the Host and Login for import form.
    • Click apply