SOLVED SSHD ??

Jim binarynut at comcast.net
Sun Jan 12 17:24:55 UTC 2014


On 01/12/2014 12:02 AM, Ed Greshko wrote:
> On 01/12/14 12:43, Jim wrote:
>> Fedora 118
>>
>> What is wrong with these settings ?
>> I set the firewall-cmd ssh port 7777, but it's listening on port 35881. How do I fix this ??
>>
>>
>> # systemctl status sshd.service
>> sshd.service - OpenSSH server daemon
>> Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
>> Active: active (running) since Sat 2014-01-11 23:31:54 EST; 24s ago
>> Process: 1908 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
>> Main PID: 1918 (sshd)
>> CGroup: name=systemd:/system/sshd.service
>> └─1918 /usr/sbin/sshd -D
>>
>> Jan 11 23:31:54 BigOne sshd-keygen[1908]: Generating SSH2 ECDSA host key: [ OK ]
>> Jan 11 23:31:54 BigOne systemd[1]: Started OpenSSH server daemon.
>> Jan 11 23:31:54 BigOne sshd[1918]: Server listening on 0.0.0.0 port 35881.
>> Jan 11 23:31:54 BigOne sshd[1918]: Server listening on :: port 35881.
> Well, firewall settings don't influence the port of sshd.
>
> I've not seen where you've posted or indicated that you changed the "Port" parameter in /etc/ssh/sshd_config.
>

I went into /etc/ssh/sshd_config. and changed the port from 35881 to 7777 and restarted sshd , what puzzels me is how the setiing of port 35881 got in /etc/ssh/sshd_config.

And I now have have ssh set at 7777 and listening on that port.
I also got the firewall setup on 7777.

Thhanks for your help Ed.



More information about the users mailing list