[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3355
  • Last Modified:

Cent OS 7 SSH Putty

I need to access my Cent OS box from Putty ... how do I set that up? Or is it just a port forward I need to make on the router? It's a standard install.
2 Solutions
OpenSSH is already installed by default so there's nothing you should need to do on the server.  On your router you just need to forward port 22 on TCP.  If you want to harden it more there's a great article here: http://wiki.centos.org/HowTos/Network/SecuringSSH

If you need to connect to your CentOS using putty ( ssh ) from outside , as convergint said you need to perform a port forward on port 22, also verify ssh daemon is running  running the following:

service sshd status -- u shall get a message saying is running in case is not then start it
service sshd start

Check if you have enabled the iptables on ur Centos ( Linux Firewall)

service iptables status --- > if they are running u have two options define a rule in order 22 port be opened or disabled

service iptables stop

if you define u want to keep running iptables then define the rule to allow ssh ( port 22) be opened

vi /etc/sysconfig/iptables

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

reload the service

service iptables restart

At this point u can test ur ssh service if you are connected on the same network

Finally depends of the router vendor perform a port forward on port 22


Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now