Rakesh Jain
Rakesh Jain

@devops_tech

20 تغريدة 2 قراءة Mar 10, 2024
Different Ways of Remote Login in Linux 🐧💻
A Thread with examples👇🐧
1/6 🛡️ SSH (Secure Shell): Forge secure connections between hosts. Encrypts data, ensuring confidentiality.
#SSH #SecureShell #RemoteAccess
Example 1:
ssh user1@192.168.1.100
Explanation: Establish a secure connection to the host with IP address 192.168.1.100 using SSH. Replace "user1" with your username.
Example 2:
ssh -i key.pem ubuntu@ec2-54-123-456-789.compute-1.amazonaws.com
Explanation: Connect securely to an Amazon EC2 instance named ec2-54-123-456-789.compute-1.amazonaws.com using SSH. The -i flag specifies the private key file "key.pem".
2/6 🌟 Telnet: A vintage option, but beware, it transmits data in plain text! Use cautiously due to security risks.
#Telnet #Insecure #Network
Example 1:
telnet 192.168.1.100
Explanation: Initiate a Telnet session with the host having IP address 192.168.1.100. Data transmission occurs in plain text, potentially compromising security.
Example 2:
telnet mail.example[dot]com 25
Explanation: Connect to the mail server "mail.example[dot]com" on port 25 using Telnet. Port 25 is commonly associated with SMTP (Simple Mail Transfer Protocol).
3/6 🖥️ Remote Desktop Protocol (RDP):
Experience your Linux desktop remotely! Use XRDP for RDP access.
#RDP #RemoteDesktop #Linux
Example 1:
xrdp
Explanation: Start XRDP server on the Linux machine, enabling remote desktop access. Clients can connect using RDP protocols from Windows or other platforms.
Example 2:
sudo apt install xrdp
Explanation: Install XRDP on your Linux machine. This command installs XRDP and its dependencies, preparing your system for remote desktop access.
4/6 🎨 Virtual Network Computing (VNC): |
Share your Linux desktop visually!
Collaborate or troubleshoot with others remotely, offering a rich graphical interface.
#VNC #RemoteDesktop #Visual
Example 1:
vncserver :1
Explanation: Start a VNC server on display :1. This allows remote users to access the desktop environment associated with display :1.
Example 2:
vncviewer 192.168.1.100:1
Explanation: Connect to the VNC server running on host 192.168.1.100, accessing the desktop environment associated with display :1.
5/6 📁 Secure Copy Protocol (SCP):
Move files securely between hosts!
SCP utilizes SSH for encrypted file transfers, ensuring data integrity.
#SCP #FileTransfer #Security
Example 1:
scp file.txt user1@192.168.1.100:/home/user1
Explanation: Securely transfer the file "file.txt" to the home directory of user "user1" on the host with IP address 192.168.1.100.
Example 2:
scp -r directory/ user1@192.168.1.100:/home/user1
Explanation: Recursively copy the directory "directory" and its contents to the home directory of user "user1" on the remote host.
6/6 🔄 Secure File Transfer Protocol (SFTP):
Manage files remotely with confidence!
SFTP provides a secure channel for file manipulation over SSH connections.
#SFTP #Security #Transfer
Example 1:
sftp user1@192.168.1.100
Explanation: Initiate an SFTP session with the host having IP address 192.168.1.100. Users can securely transfer files using SFTP commands.
Example 2:
sftp -i key.pem user1@192.168.1.100
Explanation: Connect to the remote host using SFTP and authenticate with a private key file "key.pem" instead of a password.
Repost the thread if you find it useful. Thanks!

جاري تحميل الاقتراحات...