LCKB
Setting up SSh on a VM - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124)
+----- Forum: General Guides (https://lckb.dev/forum/forumdisplay.php?fid=194)
+----- Thread: Setting up SSh on a VM (/showthread.php?tid=2823)



- Vogelj1988 - 06-10-2015


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