KEMBAR78
SSH Server Setup | PDF | Secure Shell | Security
0% found this document useful (0 votes)
23 views11 pages

SSH Server Setup

The document provides a comprehensive guide on setting up SSH (Secure Shell) on RHEL 9 and OpenSUSE, detailing its importance for secure remote access and system administration. It outlines the steps for both password and key-based authentication, including server and client configurations, firewall settings, and necessary commands. The conclusion emphasizes the significance of SSH in modern IT environments for aspiring DevOps and Linux engineers.

Uploaded by

rn03mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views11 pages

SSH Server Setup

The document provides a comprehensive guide on setting up SSH (Secure Shell) on RHEL 9 and OpenSUSE, detailing its importance for secure remote access and system administration. It outlines the steps for both password and key-based authentication, including server and client configurations, firewall settings, and necessary commands. The conclusion emphasizes the significance of SSH in modern IT environments for aspiring DevOps and Linux engineers.

Uploaded by

rn03mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

​SSH Server Setup​ ​(RHEL 9 & opensuse)​

​★ What is SSH ?​

​SSH (Secure Shell) is a protocol used to securely connect to remote​


​systems over a network. It encrypts all traffic and ensures secure​
​authentication, making it essential for system administration and​
​remote access.​

​Kartik Akade​
​★ How SSH Works Across Linux Systems:​

​●​ ​SSH server runs on the host you want to access remotely (usually​
​on port 22)​
​●​ ​SSH clients (like​​ ​,​​
ssh​ ​, or​​
scp​ ​) connect securely​​to the​
sftp​
​server​
​●​ ​You can authenticate using a password or a key pair (passwordless​
​login)​
​●​ ​Works seamlessly in the same subnet or over the internet with​
​proper firewall rules​

​For server side configurations I have RHEL 9​

​Kartik​​Akade​
​And for client side configurations I have opensuse​

​🔐 1. SSH with Password Authentication​

​Step 1:-Check status server side If it is not active​

​then activate it using this command​


​{ systemctl start sshd }​

​Kartik Akade​
​Step 2:-📁 The main configuration file for the SSH​
​server is​

​Edit​​
/etc/ssh/sshd_config​​
and make sure these lines​
​are set (remove​​
#​​if present):​

​Restart sshd using this command​


​{ systemctl restart sshd }​

​Kartik Akade​
​Step 3:- On the server side, add the SSH service​
​to the firewall & reload it.​

​★ ssh Client:​

​●​ ​ssh username@<ip-address>​


​●​ ​ ​: Secure Shell command to start the connection.​
ssh​
​●​ ​ ​: The user account on the remote server​
username​
​●​ ​ ​: The IP address of the remote system​
<ip-address>​

​Kartik Akade​
​Step 4:🔐 SSH Login Using Username and Server IP​

​NOW :-​

​1. In server side, some files were created in a​


​directory.​

​2. Now check in client side is that added files or data​


​is visible in client side or not.​

​Kartik Akade​
​●​ ​Server Side in rhel 9 :​

​●​ ​Client Side in opensuse :​

​Kartik Akade​
​🔑 2. SSH Without Password (Key-Based​
​Authentication​

​Step 1:-📁 The main configuration file for the SSH​


​server is​

​Edit​​
/etc/ssh/sshd_config​​
and make sure these lines​
​are set (remove​​
#​​if present):​

​Restart sshd using this command​


​{ systemctl restart sshd }​

​Kartik Akade​
​Step 2: Generate SSH Key on Client​

​Step 3: Copy Public Key to Server Using this​


​command​​{ ssh-copy-id username@server_ip }​

​Kartik Akade​
​Step 4:- You will be able to connect without​
​entering a password, as the SSH key will handle the​
​authentication automatically.​

​●​ ​Server Side in rhel 9 :​

​●​ ​Client Side in opensuse :​

​Kartik Akade​
​🔐 Important:-​

​1.​ ​SSH works on port 22 by default make sure this port is allowed in​
​the firewall.​
​2.​ ​The SSH service must be running on the server so it can accept​
​connections.​
​3.​ ​The server and client should be connected to the same network,​
​or able to reach each other.​

​✅ Conclusion:-​

​SSH (Secure Shell) is a secure and powerful protocol for remote​


​access, command execution, and system administration across​
​networked systems.​
​For aspiring DevOps or Linux engineers, gaining hands-on experience​
​with SSH setup, key-based authentication, and secure communication​
​practices is crucial. It deepens your understanding of secure remote​
​management, automation, and Linux server administration — all​
​fundamental skills in modern IT environments.​

​Kartik Akade​

You might also like