Setting up SSh on a VM
#1

Step 1: Install CentALT RPM Repository

Latest version of OpenSSH is available under CentALT rpm repository. Install it using one of following commands.

CentOS/RHEL 6, 32 Bit (i386):

# rpm -Uvh 2

 

CentOS/RHEL 6, 64 Bit x86_64):

# rpm -Uvh 2

 

CentOS/RHEL 5, 32 Bit (i386):

# rpm -Uvh 2

 

CentOS/RHEL 5, 64 Bit (x86_64):

# rpm -Uvh 2

Step 2: Install/Update OpenSSH ServerUse following command to install or update latest OpenSSH server available in yum repositories.

# yum install openssh-server

Step 3: Start OpenSSH ServiceAfter installing openssh latest rpm packages, start the service using following command and make it to auto start on system boot.

# service sshd start

# chkconfig sshd on

Step 4: Open Port in IptableIf you are using iptables to secure your server, use following command to open port for SSH access.

# iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 22 -j ACCEPT



Messages In This Thread
[No subject] - by Vogelj1988 - 06-10-2015, 12:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)