Re: Linux anti-virus any good?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/12/2017 03:39 PM, Dave Ihnat wrote:
> On Wed, Jul 12, 2017 at 05:28:47PM -0500, Doug wrote:
>> How do you move SSH off port 22? Please supply konsole code.
> 
> Dunno about konsole code; it's a single-line change in
> "/etc/ssh/sshd_config", from
> 
>   Port 22
> 
> to some unused port.

To be clear, edit /etc/ssh/sshd_config using your favorite editor.
Around line 17, you'll see:

	#Port 22

Change that to read

	Port 222

or whatever port you want it on. Then:

	$ sudo systemctl restart sshd.service

To confirm it:

	$ sudo netstat -lpnt | grep sshd

You should see something like:

	tcp        0      0 0.0.0.0:222             0.0.0.0:*
LISTEN      1429/sshd
	tcp6       0      0 :::222                  :::*
LISTEN      1429/sshd

The first line is sshd listening on port 222 for IPV4 connections,
the second is the same for IPV6 and may not be present if you have
disabled IPV6. The "1429" is the PID of the sshd process on my
machine. Your PID will probably be different.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-            "You think that's tough?  Try herding cats!"            -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux