How Do I Log into the Command Line?

At times you may need to remotely log into your SEAS account via SSH to use the UNIX command line.

Two-Step Verification is required when using a PennKey password for SSH authentication on SEAS systems. See What is SSH? for more information.

Penn VPN software is required for all SSH connections from networks that are outside of PennNet.

Before connecting to a machine on PennNet via SSH from an external network, you must install and run the University Client VPN software:

Windows

Putty

Putty is a popular SSH client for Windows and is installed on all CETS lab Windows computers.

  1. Open putty via Start -> All Programs -> Network Software -> putty (ssh client).
  2. Enter eniac.seas.upenn.edu into the Host Name field and click the Open button.

SecureCRT

Another SSH client, SecureCRT by Van Dyke Technologies, may be downloaded for free by all Penn staff, students and faculty for installation on personal computers.

With SecureCRT installed, follow these steps to connect:

  1. Double-click on the SecureCRT icon on the desktop.
  2. When the program opens, a list of hosts will be presented. Double-click on eniac.seas.upenn.edu.
  3. The first time you connect to a server, a dialogue box will appear asking whether or not you would like to accept the new host key. Click the Accept & Save button.
  4. Enter your username and password when prompted. Your username is typically the same as your PennName, unless you are accessing an activity account.

If you are disconnected with an error like this:

The client has disconnected from the server. Reason:
Unable to authenticate using any of the configured authentication methods.
  1. Open Options -> Session Options -> Connection -> SSH2.
  2. Check the box for Keyboard Interactive and move it to the top of the list (optionally unchecking the Password box).
  3. Save the new settings, exit and try connecting again.

SecureCRT SSH2 settings dialog

If you get a cipher error like this:

Key exchange failed.
No compatible cipher. The server supports these ciphers:
chacha20-poly1305@openssh.com,AES-128-CTR,AES-192-CTR,AES-256-CTR
  1. Open Options -> Session Options -> Connection -> SSH2 -> Advanced.
  2. Check the boxes for the supported ciphers listed by the server.
  3. Save the new settings, exit and try connecting again.

SecureCRT Advanced SSH2 settings dialog

Closing Your Session

These instructions will place you at the unix command prompt. When you're finished, close your session by typing exit.

WARNING: Closing the session window while a program is running in the unix environment can lead to lost data. Try to use exit whenever possible.

For additional help in the labs, visit one of the CETS help desks located in Levine Room 164, or search here in Answers for more specific questions.

Mac OS

Open the Terminal application, which is in the Applications > Utilities folder. At the prompt, type this command (replacing user with your SEAS username):

ssh user@eniac.seas.upenn.edu

Linux or Unix

Open a console window and type this command (replacing user with your SEAS username):

ssh user@eniac.seas.upenn.edu

Running GUI applications on Eniac

You can use X11 forwarding or VNC to run GUI applications on Eniac.

Related Articles

© Computing and Educational Technology Services