semoga bermanfaat

INSPIRASI BISNIS

apa itu open ssh baca disini (www.openssh.org).Nah sekarang saya kan menunjukkan cara instalasi dan konfigurasi openssh pada centOS linux versi berapa saja.Langkah Langkah sebagai berikut;
1.Silahakn install dahulu di PC Client(not servers)
– Buka terminal dan ketikkan
# yum -y install openssh-server openssh-clients

Start the service:

# chkconfig sshd on
# service sshd start

Make sure port 22 is opened:

# netstat -tulpn | grep :22
Firewall Settings
Edit /etc/sysconfig/iptables (IPv4 firewall),

# vi /etc/sysconfig/iptables

Add the line

-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT

If you want to restict access to 192.168.1.0/24, edit it as follows:

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 22 -j ACCEPT

If your site uses IPv6, and you are editing ip6tables, use the line:

-A RH-Firewall-1-INPUT -m tcp -p tcp –dport 22 -j ACCEPT

Save and close the file. Restart iptables:

# service…

View original post 72 more words

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s