Ubuntu Login Terminal: How to Open It and Sign In

An Ubuntu “login terminal” can mean either a text console that displays a login: prompt or the Terminal app you open after signing in to the desktop. At a text-console prompt, enter your account name and password; on an already signed-in Ubuntu desktop, press Ctrl+Alt+T to open a terminal window. To log in to an Ubuntu server from another computer, use SSH rather than the local login program.

What an Ubuntu Login Terminal Means

A terminal window and a terminal login prompt do different jobs: one inherits your current desktop session, while the other creates a new user session.

You may encounter three common situations:

  • A graphical login screen asks you to choose an account and enter a password before the desktop starts.
  • A text console shows login:. This is common on servers, recovery environments, virtual consoles, and systems without a graphical desktop.
  • The Terminal app opens a shell after you have already logged in graphically. It does not ask you to log in again.

At a text-console login: prompt, the system has normally already started the login program for you. You provide the username and password; you do not usually run the login command yourself.

How to Log In at an Ubuntu Text Console

Use this process when the screen shows a plain login: prompt rather than the normal Ubuntu desktop.

Choose the situation that matches what is in front of you.

Situation What to Do
Screen displays login: Enter your Ubuntu username, then enter its password.
You are already at the Ubuntu desktop Open the Terminal app instead; you are already signed in.
You need an Ubuntu server from another computer Connect with SSH.
You intentionally need to replace the current shell with a login session Use exec login, not a bare login command.

Step 1: Start at the login: Prompt

At a local text console, type the username for the Ubuntu account and press Enter. The prompt will then request that account’s password.

When login is run directly, its documented syntax is login [-p] [-h host] [username] . The brackets mean those items are optional syntax elements, not characters to type. At a normal login: screen, the system has already invoked that utility and is waiting for your credentials.

A successful login starts your shell and normally places you in your home directory with your account’s environment loaded.

Step 2: Enter the Password Without Expecting Visible Characters

Type the password and press Enter. Ubuntu intentionally does not display password characters, dots, or asterisks while you type.

Type carefully and press Enter once. If authentication succeeds, the screen changes to a shell prompt, often ending in $ for a standard user.

If password aging is enabled for the account, Ubuntu can ask for the old password and then require a new password before it completes the login.

Step 3: Verify the Account and End the Local Session

After reaching a shell prompt, confirm the account name:

whoami

The output should be the username you intended to use. When you are done, close the local shell session:

exit

On a text console, this normally returns you to the login: prompt. It does not shut down the computer.

Open Terminal on an Ubuntu Desktop

If you are already signed in to Ubuntu’s graphical desktop, opening Terminal is usually all you need. It starts a shell as the same account that is signed in to the desktop.

Press Ctrl+Alt+T to open Terminal on most Ubuntu releases, including Ubuntu 22.04 and 24.04.

If the shortcut does not work, open the application launcher and search for Terminal. On Ubuntu 18.04, the documented path is Activities, then type the first letters of “terminal,” “command,” “prompt,” or “shell.” That specific Activities workflow is for Ubuntu 18.04, so check the installed release before relying on it:

cat /etc/os-release

Ubuntu flavors and customized desktops may place the Terminal launcher elsewhere in the app list, but searching for “terminal” is usually the quickest graphical route.

A graphical login screen is different from a desktop session. If you are still at the Ubuntu sign-in screen, sign in through the graphical interface first, then use Ctrl+Alt+T after the desktop appears. The Terminal app normally runs under an authenticated user session rather than directly from the login greeter.

Log In to an Ubuntu Server From Another Terminal

To access an Ubuntu server over a network, use Secure Shell (SSH). SSH encrypts the connection and is the normal remote administration method.

Open a terminal on your local computer and replace username with the account on the server and server-name-or-address with its hostname or IP address:

ssh username@server-name-or-address

On the first connection, SSH may ask you to verify the server’s host key. Confirm it only when you recognize the server you intended to reach. Then authenticate with the server account’s password or configured SSH key.

After you reach the remote shell, verify the account:

whoami

When finished, end the SSH session:

exit

That closes the remote shell and returns you to your local terminal. It does not log out the graphical desktop or stop the remote server.

Why login -r host Is Not the Usual Remote Login Command

The login utility documents a remote-host form for older remote-login handling.

The remote-host form uses the syntax login [-p] -r host .

This is for the older rlogin protocol handling and is not the command to use for a normal SSH connection to an Ubuntu server. The -r, -h, and -f options are reserved for cases where login is invoked by root. Use SSH for current remote administration.

Switch Users and Log In as Root Safely

Sometimes you are signed in but need a shell for another account. Do not log out of the desktop just to run a command as another user.

Switch to Another Standard User

To start a login-style shell for another local account, use su with a dash. Replace username with the target account:

su - username

The dash matters because it requests that user’s login environment, including their home directory and shell settings. You will normally need the target account’s password.

Confirm the active account:

whoami

When finished, return to your original shell:

exit

Start a Root Shell With Sudo

Ubuntu commonly locks the direct root password by default, so signing in as root is usually not the normal administrative path. If your current account has sudo permission, start an administrative login shell with:

sudo -i

Enter your own account password when prompted. Commands in that shell run with root privileges, so use it only for tasks that actually require system-wide access.

Verify when needed:

whoami

The output should be root. Leave the root shell as soon as the administrative task is complete:

exit

Replace the Current Shell With login

If you deliberately need to invoke the login program from an existing shell, use:

exec login

exec replaces the current shell instead of starting a child process that leaves the original session attached. This is a specialized action: your current shell is gone once the command runs, and you must authenticate again.

Do not use a bare login command as a routine way to change users. The login program can return an error when invoked from a shell other than a login shell, and su - username is the more appropriate tool for switching accounts interactively. Ubuntu’s login documentation describes the program’s invocation restrictions and reserved options.

Confirm Which Ubuntu Account Is Active

Before running package, service, or file-permission commands, check which account owns the shell. A shell prompt can be customized, so its displayed name is not proof of your identity.

Run:

whoami

For a normal development shell, the result should be your standard username. For a root shell started with sudo -i, it should be root. For an SSH session, it should be the remote server account, not your local computer’s username.

You can also check the home directory assigned to the current shell:

printf '%s\n' "$HOME"

A correctly started login shell normally uses the active account’s home directory. If the account name or home directory is unexpected, stop before running administrative or destructive commands and leave the shell with exit.

Fix Common Ubuntu Terminal Login Problems

The Password Appears To Do Nothing

Type the password normally and press Enter once.

For installations using the pam_unix authentication module, the built-in behavior is 3 retries. The exact authentication stack can be changed by local PAM configuration, so administrators should confirm the installed behavior in the system’s PAM settings rather than assuming every Ubuntu system has identical retry handling.

The Login Prompt Returns After Entering Credentials

First, check the username spelling and keyboard layout. Passwords are case-sensitive, and a different keyboard layout can change punctuation characters.

If the account’s password has expired, Ubuntu may require the old password followed by a new one. If you do not know the current password or the account is locked, use another authorized administrator account or follow your organization’s account-recovery process.

Ctrl+Alt+T Does Not Open Terminal

Ctrl+Alt+T opens Terminal from an active graphical desktop session; it may not work at the graphical login screen. Sign in to the desktop first, then try the shortcut again.

If you are already logged in and it still fails, use the application launcher and search for “terminal.” On Ubuntu 18.04, Activities is the expected starting point for that search; other Ubuntu desktop environments may organize app launchers differently.

SSH Cannot Connect to the Server

Check that you used the right server name or address, the correct username, and a network path to the server. A refused or timed-out connection can also mean the server’s SSH service is not running or is blocked by network rules.

Use SSH for remote connections; login [-p] -r host is not a substitute for an SSH client connection.

Frequently Asked Questions

How do I open Terminal on the Ubuntu login screen?

You normally cannot use Ctrl+Alt+T until after you have completed the graphical Ubuntu sign-in process. Sign in to the desktop first, then press Ctrl+Alt+T to open Terminal as that logged-in account. If you need a text-only login environment, use an available system console or a server console instead of the graphical greeter.

Why does Ubuntu not show my password while I type?

Ubuntu hides all password characters at terminal login prompts to prevent someone nearby from seeing the password length or contents. Type the password normally even though the screen stays blank, then press Enter. If the password is wrong, the system will report an authentication failure after you submit it.

How do I log in as root on Ubuntu?

Use sudo -i from an account that already has sudo permission. Ubuntu commonly keeps the direct root password locked, so a normal login root attempt is usually not the intended administration workflow. Leave the root shell with exit immediately after completing the privileged task.

How do I log out of Ubuntu from Terminal?

Type exit to end the current terminal shell. In an SSH session, exit disconnects from the remote server and returns to your local terminal; in a text-console session, it returns to login:. To sign out of the entire graphical Ubuntu desktop, use the desktop environment’s system menu rather than closing a Terminal window.

How do you start a login session from an existing Ubuntu shell?

Run exec login only when you deliberately want the login session to replace the shell you are using. This ends the current shell, so logging out of the new session will not take you back to it. You may then be prompted for a password, where appropriate.