Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-04-2016, 01:41 AM   #1
LQ Newbie
Registered: Dec 2016
Posts: 2

Rep: Reputation: Disabled
systemctl error after changing port on sshd

Hi, I got an error on systemctl, so it is failure to restart the is the error when I check the status of the systemctl sshd.server.

process: 1914 execstart=/usr/sbin/sshd -D $sshd_opts (code=exited, status=255)

What should I do to kill this error.
Old 12-04-2016, 07:30 PM   #2
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
How did you change the port? Are you using a Red Hat based distro? If so you may need to modify SELinux Booleans.
Old 12-04-2016, 10:24 PM   #3
LQ Newbie
Registered: Dec 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
it is ubuntu 16.0.4 im executing a command vim /etc/ssh/sshd_config then change the port from 22 to 40022 the after that I press :x the restart the ssh. after rebooting, I can't connect to the server. using putty. upon checking, an error occur to the server
Old 12-05-2016, 12:36 AM   #4
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Did you change anything lately? Are you sure it is called sshd.server and not anything else? You might be trying to restart a phantom service there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemctl command error gowlet CentOS 3 06-06-2016 04:13 AM
Systemctl command error gowlet Fedora 2 06-05-2016 11:04 AM
Fedora 16 systemctl error Pierredup Linux - Server 3 04-15-2012 12:25 PM
sshd : redirecting to systemctl mohamed makhyoun Linux - Software 5 01-16-2012 12:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration