Allow SSH Connections Fedora 19

Need remote shell access to a Fedora 19 box that only has a local desktop login? This walkthrough enables the OpenSSH server from GNOME, starts sshd, turns it on for future boots, finds the IP address, and confirms a login from PuTTY. Fedora 19 is long end-of-life, but the same idea applies on current Fedora and on RHEL, AlmaLinux and Rocky Linux with the systemctl commands at the end.

Prerequisites

  • A Fedora 19 system with the GNOME 3 desktop and an account that can become root.
  • The openssh-server package (install with yum install openssh-server if sshd is missing).
  • Network reachability from the client to the Fedora host on TCP port 22, and a firewall rule that allows SSH if a firewall is running.

1. Open Terminal from GNOME

In the GNOME 3 menu, go ahead and go to “show applications” and move to “all”.

Fedora 19 desktop wallpaper before opening GNOME to enable the SSH server
GNOME 3 Activities overview on Fedora 19 showing Show Applications set to All

Select Utilities, then Terminal.

GNOME Applications grid highlighting the Utilities folder on Fedora 19
Opening Terminal from the GNOME Utilities folder on Fedora 19

2. Become root

Su to root so you can manage the sshd service:

su
Running su on Fedora 19 and entering the root password at the terminal

Enter the root password when prompted. The prompt should change to something like [root@localhost ...]#.

3. Start sshd and enable it at boot

Restart SSH so the daemon is listening:

service sshd restart

From there we should have remote access. For future reboots, enable the service with chkconfig:

chkconfig sshd on

On Fedora 19 you can also use the newer unit commands if systemctl is available: systemctl enable --now sshd.

4. Find the IP address

ifconfig will show us the IP, you may also want to do chkconfig sshd on for future reboots (shown above). Run:

ifconfig
ifconfig on Fedora 19 showing p2p1 with IPv4 address 192.168.1.23 highlighted
ifconfig output on Fedora 19 used to read the LAN IP before an SSH login

Look for the LAN interface (here p2p1) and its inet address — in this example 192.168.1.23. Skip the lo loopback address.

5. Connect from PuTTY (or any SSH client)

Bam! Able to login with putty! Point PuTTY (or ssh root@192.168.1.23) at that IP on port 22 and sign in with a local account.

PuTTY session logged in as root at 192.168.1.23 after enabling sshd on Fedora 19

That’s it!

Verify

service sshd status
ss -tlnp | grep ':22'
chkconfig --list sshd

You should see sshd running and listening on port 22, and chkconfig should show it on for the normal runlevels.

Troubleshooting

  • Connection refused: sshd is not running, or openssh-server is not installed. Start it again and confirm with ss -tlnp | grep 22.
  • Connection timed out: a firewall is blocking port 22, or you are using the wrong IP. On firewalld use firewall-cmd --permanent --add-service=ssh && firewall-cmd --reload. On iptables, allow TCP 22 before testing again.
  • Permission denied: wrong password, or root login is disabled in /etc/ssh/sshd_config (PermitRootLogin). Try a normal user and sudo, or adjust that setting and restart sshd. See Configure SSH Key Authentication Only for key-based logins.

Modern Fedora, RHEL, AlmaLinux and Rocky Linux

Fedora 19 used service/chkconfig and ifconfig. On current releases:

dnf install openssh-server
systemctl enable --now sshd
ip -br a
firewall-cmd --permanent --add-service=ssh
firewall-cmd --reload

ip -br a replaces ifconfig for a quick address list. The OpenSSH server unit name remains sshd.

Hosted Fedora Linux at www.zwiegnet.com/go

Related guides: Configure SSH Key Authentication Only | Join Fedora to Windows Domain

Leave a Reply

Your email address will not be published. Required fields are marked *