Connect to a Linux server - Simple Application Server (2024)

You can connect to a Linux simple application server by using the Simple Application Server console or a third-party client. This topic describes how to connect to a Linux server.

Prerequisites

  • The Linux simple application server to which you want to connect is in the Running state.

  • If you want to use a password to connect to a server, make sure that a password is configured for the server.

    After you create a simple application server, no password is configured for the root user by default. You must manually configure a password. For more information, see Set or reset the password of a server.

Precautions

If the feature of key pair-based logon is enabled for your Linux server, password-based logon is automatically disabled for the root account of the server.

Important

To re-enable password-based logon, you must modify the configuration file. For more information, see Re-enable password-based logon.

Connect to a Linux server

You can use Workbench in the Simple Application Server console to connect to a Linux server. You can also use a third-party client to connect to a Linux server. You can choose different methods to connect to your Linux server based on the operating system type of your on-premises device.

(Recommend) Method 1: Use Workbench to connect to a Linux server

You can use Workbench to connect to a simple application server in the Simple Application Server console. You can select one of the following connection methods based on your business requirements:

  • Connect with one-click on Workbench: By default, the admin user connects to the server over port 22 without entering a username and password. In this case, features such as file processing that require root user permissions cannot be used.

  • Password-based logons on Workbench: By default, the root user connects to the server over port 22 after the root user enters the password.

  • Rescue logon: This method is suitable for logging on to a Linux server when the server is running but the operating system is not booted.

    Note

    If you use the method of connecting with one-click on Workbench or password-based logons on Workbench, you can set a custom port for the connection. For more information, see Modify the remote connection port of a Linux server.

Procedure:

  1. Log on to the Simple Application Server console.

  2. In the left-side navigation pane, click Servers.

  3. In the server card, click Connect to connect to the server.

    You can also click the server ID in the server card to connect to the server on the Remote Connection tab.

  4. In the Connect dialog box, select a connection method based on your business requirements.

    1. Select remote connection method.

      Connect to the server as the admin user without entering a password

      In the Connect with One-click on Workbench section, click Log on Now to connect to the server as the admin user. You do not need to enter the username and password.

      Connect to a Linux server - Simple Application Server (1)

      Connect to the server as the root user

      Click Log on By using Other Methods. In the Password-based Logons on Workbench section, click Log on Now and then enter the password of the root user to connect to the server.

      Connect to a Linux server - Simple Application Server (2)

      Connect to the server by using the rescue feature

      You can use this method to connect to a Linux server that is in the Running state but whose operating system is not booted.

      1. Click Log on by Using Other Methods. In the Rescue Logon section, click Log on Now to connect to the server.

        Connect to a Linux server - Simple Application Server (3)

      2. In the command line, enter root and the logon password.

  5. (Optional) Use Workbench to manage files on a Linux server.

    If you connect to a Linux server as the root user, Workbench provides a GUI to allow you to manage files on the Linux server. You can use Workbench to view, add, delete, and modify files on the Linux server. You can also use Workbench to upload and download files on the Linux server. For more information, see Manage files.

Method 2: Connect to a Linux server from a Windows device

This section describes how to connect to a Linux server from a Windows device. In this example, PuTTY is used.

Connect to a Linux server by using the system user and password

  1. Configure a logon password for the Linux server. For more information, see Set or reset the password of a server.

  2. Download and install PuTTY on your Windows device. For information about how to download and install PuTTY, see PuTTY: a free SSH and Telnet client.

  3. Start PuTTY.

  4. Configure the Linux server to which you want to connect.

    The following table describes the parameters that you must configure. Use the default values for parameters that are not described in the following table.

    Parameter

    Description

    Host Name(or IP address)

    Enter the logon account and public IP address of the simple application server. Format: <Username>@<Public IP address>. Example: [email protected].

    Port

    Enter 22.

    Connection type

    Select SSH.

    Saved Sessions

    Enter a name, such as test, that is easy to identify, and then click Save to save the session. You do not need to enter information such as the public IP address of the server next time you log on to the server.

    Connect to a Linux server - Simple Application Server (4)

  5. Click Open.

  6. In the command line, enter root, which is the system user of the Linux server. Then, press the Enter key.

  7. In the command line, enter the logon password of the root user of the Linux server and press the Enter key.

    Note

    For data security purposes, no output is returned when you enter a password. You only need to enter the correct password and press the Enter key.

    If the information shown in the following figure is displayed, the logon to the server is successful.Connect to a Linux server - Simple Application Server (5)

Connect to a Linux server by using a key pair

  1. Bind a key pair to the Linux server. For more information, see Create or import a key pair.

    Important

    After you create a key pair, you must restart the server to allow the key pair to take effect.

  2. Download and install PuTTYgen and PuTTY.

  3. Convert the .pem private key file to the .ppk private key file.

    If the key file in the .pem format bound to your Linux server is automatically generated by Alibaba Cloud, you must convert the key file from the .pem format to the .ppk format before you can use PuTTY to connect to the server. Procedure:

    1. Open PuTTYgen. In the Actions section, click Load.Connect to a Linux server - Simple Application Server (6)

    2. In the lower part of the Load private key dialog box, select All Files(*.*) to view files of all formats.Connect to a Linux server - Simple Application Server (7)

    3. Find and select the private key file stored in the .pem format on your on-premises device. In the PuTTYgen Notice message, click Yes.

    4. In the Parameters section, click RSA.

    5. In the Actions section, click Save private key. Then, click Yes.

      Specify a name for the private key file in the .ppk format and a path to save the file.

  4. Configure the Linux server to which you want to connect.

    The following table describes the parameters that you must configure. Use the default values for parameters that are not described in the following table.

    Parameter

    Description

    Host Name(or IP address)

    Enter the logon account and public IP address of the simple application server. Format: <Username>@<Public IP address>. Example: [email protected].

    Port

    Enter 22.

    Connection type

    Select SSH.

    Saved Sessions

    Enter a name, such as test, that is easy to identify, and then click Save to save the session. You do not need to enter the information such as the public IP address of the server next time you log on to the server.

    Connect to a Linux server - Simple Application Server (8)

  5. Configure the private key file used for authentication.

    1. In the left-side navigation pane, choose Connection > SSH > Auth > Credentials.

    2. In the Private key file for authentication section, click Browse…

    3. Select the key file in the .ppk format on your on-premises device and click Open.Connect to a Linux server - Simple Application Server (9)

  6. Click Open.

    If the information shown in the following figure is displayed, the connection to the server is successful.

    Connect to a Linux server - Simple Application Server (10)

Method 3: Connect to a Linux server from a Linux or macOS device

This section describes two methods that can be used to connect to a Linux server. In these examples, the operating systems that support SSH commands are used.

Connect to a Linux server by using the system user and password.

  1. (Optional) Configure a logon password for the Linux server. For more information, see Set or reset the password of a server.

  2. Run the following command to connect to the Linux server:

    ssh root@<Public IP address of the Linux server>

    Example:

    ssh [email protected]
  3. Enter yes and press the Enter key.

    The first time you connect to the Linux server, the system cannot verify the authenticity of the remote server. Instead, the system provides only the public key fingerprint of the server and asks you whether to continue with the connection. Enter yes to indicate that you trust the server.

  4. Enter the logon password of the Linux server and press the Enter key.

    Note

    For data security purposes, no output is returned when you enter a password. You need only to enter the correct password and then press the Enter key.

Connect to a Linux server by using a key pair

  1. Bind a key pair to the Linux server. For more information, see Create or import a key pair.

    Important

    After you create a key pair, you must restart the server to allow the key pair to take effect.

  2. Find the private key file stored on your on-premises device.

    In this example, the /test/XXX.pem key file is used.

  3. Run the following command to modify permissions on the private key file.

    Replace /test/XXX.pem with the actual path of the private key file.

    chmod 400 /test/XXX.pem
  4. Run the following command to connect to the Linux server.

    Replace <Public IP address of the Linux server> and /test/XXX.pem with the actual public IP address of your Linux server and the actual path of your private key file.

    ssh root@<Public IP address of the Linux server> -i /test/XXX.pem

    If the following command output is returned, run the ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa root@<Public IP address of the Linux server> -i /test/XXX.pem command.

    sign_and_send_pubkey: no mutual signature supported [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 

Re-enable password-based logons

After you create a key pair for a simple application server and restart the server for the new key pair to take effect, password-based logon is automatically disabled for the root account on the server. To re-enable password-based logon, you must modify the configuration file of the server. Procedure:

  1. Connect to the server by using the Simple Application Server console.

    For more information, see (Recommend) Method 1: Use Workbench to connect to a Linux server.

  2. Run the following command to open the /etc/ssh/sshd_config file:

    sudo vim /etc/ssh/sshd_config
  3. Press the I key to enter the edit mode. At the end of the file, change PasswordAuthentication no to PasswordAuthentication yes.

    The following figure shows the command output after the modification.Connect to a Linux server - Simple Application Server (11)

  4. Press the Esc key to exit the edit mode. Then, enter :wq and press the Enter key to save and close the file.

  5. Run the following command to restart the SSH service:

    sudo service sshd restart

    After SSH is restarted, you can use the root account and the corresponding password to connect to the Linux server. If you did not configure a password or forget the password of the server, configure or reset the password. For more information, see Set or reset the password of a server.

    Important

    When you use a password to connect to the server, make sure that you enter the correct password.

FAQ

For information about how to troubleshoot an issue such as a timeout or failure that occurs when you connect to a server, see FAQ. If the issue persists, you can submit a ticket to obtain technical support.

Connect to a Linux server - Simple Application Server (2024)

FAQs

How to connect to an application server in Linux? ›

Log on to the Simple Application Server console. In the left-side navigation pane, click Servers. In the server card, click Connect to connect to the server. You can also click the server ID in the server card to connect to the server on the Remote Connection tab.

How to connect to a Linux server? ›

To log in, you need to know the IP address and the password of the server. Above all, you need to have the SSH client installed on your machine. This comes pre-installed on almost all Linux distros. In order to access the server via SSH, the server should have SSH Server installed and the service running in it.

How do I access a Linux server from a Windows server? ›

Connect to a Linux server via SSH
  1. Open the list of your servers and click on the one you need. Click the Instructions button. ...
  2. Open a terminal (for Linux) or a command line (for Windows) on your computer. Enter the command: ...
  3. The connection will prompt you for a password. Enter the password from the instructions.

How to check connectivity from one server to another server in Linux? ›

How to Check Whether Your Server Is Online Using a Linux Command...
  1. Syntax: ping <destination>
  2. Syntax.
  3. Wget is a command-line download tool that supports HTTP, HTTPS and FTP. ...
  4. You can use the curl command to transfer data either from or to a server. ...
  5. You can use curl command to test TCP ports connectivity.
Feb 22, 2022

How do I access applications in Linux? ›

Move your mouse pointer to the Activities corner at the top left of the screen to show the Activities overview. This is where you can find all of your applications. You can also open the overview by pressing the Super key.

How do I connect an application to a server? ›

The most common method for mobile apps to communicate with servers is through HTTP or HTTPS requests. The app sends a request to the server's API endpoint, and the server responds with the necessary data. Example: An e-commerce app fetching product details from the server.

How to login to a Linux server via SSH? ›

Opening an SSH Connection to a Linux Server with a Linux Computer
  1. Open a terminal (e.g. xterm).
  2. In the terminal, type the following command: ssh root@<IP ADDRESS OF THE SERVER> When you log in for the first time, the following prompt appears: ...
  3. Optional: Enter the command yes.
  4. Enter your password.

How to connect to a server using command line? ›

To start the server from the Windows command prompt:
  1. Open the Windows command prompt. Click Start > Programs > Accessories > Command Prompt.
  2. Change directories to the RUN folder of your HPE Service Manager installation. For example: ...
  3. Type the following command: sm -httpPort:13080 -httpsPort:13081. ...
  4. Press Enter.

How to connect to Linux server without password? ›

Configuring SSH Login Without a Password Explained in 5 Steps
  1. Verify that the SSH server is running.
  2. Connect to your remote machine.
  3. Generate private and public keys.
  4. Copy the public key file to the remote machine.
  5. Login to your server using SSH keys.
Feb 20, 2024

How to access Linux in Windows? ›

Open the Start menu, search for "Turn Windows features on or off," and click on the corresponding result. In the Windows Features dialog box that appears, scroll down and locate "Windows Subsystem for Linux." Check the box next to "Windows Subsystem for Linux" and click "OK."

How do I open a live server in Linux? ›

LIVE Server Installation
  1. Download the LIVE Server root package.
  2. Run the command as root**: rpm -i LIVEServer-version-build.os.arch.rpm.
  3. Launch your LIVE Session from your LIVE Client (X-Win32, LinuxLIVE, MacLIVE etc)

How to check connectivity from Windows server to Linux server? ›

2. Check connections to the server
  1. ip addr. Windows command:
  2. ipconfig. Confirm that the default gateway and DNS server values are accurate. ...
  3. ip addr. Windows command:
  4. ipconfig /all. Ping the router and the DNS server. ...
  5. ping <IP> ...
  6. ping <hostname> ...
  7. ipconfig /flushdns.
Jul 14, 2023

How do I communicate between two Linux servers? ›

1.1. SSH and OpenSSH Copy link
  1. ssh is a remote login program (SSH client).
  2. sshd is an OpenSSH SSH daemon.
  3. scp is a secure remote file copy program.
  4. sftp is a secure file transfer program.
  5. ssh-agent is an authentication agent for caching private keys.
  6. ssh-add adds private key identities to ssh-agent .

How do I access one server from another in Linux? ›

How to Connect to a Remote Server via SSH from Windows, Linux or Mac
  1. Change the Default TCP Listening Port.
  2. Use SSH Key Pairs for Authentication.
  3. Disable Password-Based Logins on Your Server.
  4. Disable Root Access.
  5. Use TCP Wrappers.
  6. Secure Login Information and Employ Multilayer Security.
Nov 23, 2023

Which Linux command is used to check your connection to a server? ›

The “ping” command is a powerful tool that allows users to check the status of their internet connection and diagnose network-related issues. In this article, we will explore how to use the ping command in Linux to verify internet connectivity and troubleshoot potential problems.

How to connect to HTTP server in Linux? ›

To set up an HTTP server:
  1. Install the Apache HTTP server package. ...
  2. Create the directory where you will copy the full Oracle Linux Release 6 Media Pack DVD image, for example /var/www/html/OSimage/OL6.6 : # mkdir -p /var/www/html/OSimage/OL6.6. ...
  3. Edit the HTTP server configuration file, /etc/httpd/conf/httpd.

What is application server in Linux? ›

An application server is a server that hosts applications or software that delivers a business application through a communication protocol. For a typical web application, the application server sits behind the web servers. An application server framework is a service layer model.

How do I find out what application server is running on Linux? ›

You can list running processes using the ps command (ps means process status). The ps command displays your currently running processes in real-time. This will display the process for the current shell with four columns: PID returns the unique process ID.

How do I connect to a Linux server GUI? ›

Remote connection to Linux with a graphical interface
  1. Install 'vncserver' on Linux.
  2. Check your Linux distribution's documentation for the VNC Server installation process.
  3. Connect remotely from your local desktop via VNC client/viewer.
  4. On Windows, you can use TightVNC, RealVNC, or UltraVNC.

Top Articles
It’s telling me my iPad is full on storag…
7.5B: The Promoter and the Transcription Machinery
Best Pizza Novato
Warren Ohio Craigslist
Www.1Tamilmv.cafe
Splunk Stats Count By Hour
Tmf Saul's Investing Discussions
Trevor Goodwin Obituary St Cloud
I Make $36,000 a Year, How Much House Can I Afford | SoFi
Fat People Falling Gif
Uihc Family Medicine
Archived Obituaries
Limp Home Mode Maximum Derate
Athletic Squad With Poles Crossword
Produzione mondiale di vino
Paketshops | PAKET.net
Globe Position Fault Litter Robot
No Credit Check Apartments In West Palm Beach Fl
Programmieren (kinder)leicht gemacht – mit Scratch! - fobizz
Best Food Near Detroit Airport
Craigslist Pets Athens Ohio
Craiglist Galveston
fort smith farm & garden - craigslist
Grayling Purnell Net Worth
Robin D Bullock Family Photos
Juicy Deal D-Art
Big Lots Weekly Advertisem*nt
Bill Remini Obituary
Mals Crazy Crab
Tuw Academic Calendar
Meet the Characters of Disney’s ‘Moana’
Geico Car Insurance Review 2024
Arlington Museum of Art to show shining, shimmering, splendid costumes from Disney Archives
Skidware Project Mugetsu
Cfv Mychart
Vht Shortener
Bj's Tires Near Me
Emiri's Adventures
Nicole Wallace Mother Of Pearl Necklace
Everstart Jump Starter Manual Pdf
Reli Stocktwits
Navigating change - the workplace of tomorrow - key takeaways
Academic important dates - University of Victoria
Trivago Myrtle Beach Hotels
Sept Month Weather
Other Places to Get Your Steps - Walk Cabarrus
Carroll White Remc Outage Map
Ssc South Carolina
City Of Irving Tx Jail In-Custody List
Great Clips Virginia Center Commons
Edt National Board
Famous Dave's BBQ Catering, BBQ Catering Packages, Handcrafted Catering, Famous Dave's | Famous Dave's BBQ Restaurant
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6554

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.