“Failed to start OpenBSD Secure Shell server” error after adding users to PAM section ...

Israeli soda type drink

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Will I be more secure with my own router behind my ISP's router?

Stretch a Tikz tree

Writing a T-SQL stored procedure to receive 4 numbers and insert them into a table

Co-worker works way more than he should

A journey... into the MIND

Is it appropriate to mention a relatable company blog post when you're asked about the company?

What is a good proxy for government quality?

Why doesn't the university give past final exams' answers?

In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω

What do you call an IPA symbol that lacks a name (e.g. ɲ)?

Why does the Cisco show run command not show the full version, while the show version command does?

Protagonist's race is hidden - should I reveal it?

What's parked in Mil Moscow helicopter plant?

How long can a nation maintain a technological edge over the rest of the world?

What does the black goddess statue do and what is it?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

What's the difference between using dependency injection with a container and using a service locator?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

What is ls Largest Number Formed by only moving two sticks in 508?

Where can I find how to tex symbols for different fonts?

TV series episode where humans nuke aliens before decrypting their message that states they come in peace

Why did Israel vote against lifting the American embargo on Cuba?



“Failed to start OpenBSD Secure Shell server” error after adding users to PAM section



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraIs there a secure web-shell for my server?Adding shell access to existing users in zentyalServer asking for password even after adding ssh keysError connecting to server. “ Failed to startup SSH: Connection refused ”SFTP with multiple usersSSH not workingc# Connection to server using CLI services and mono, permissions deniedHaving “PAM adding faulty module: pam_winbind.so”, “… pam_kwallet5.so”, “… pam_kwallet.so” on start of smbd, ssh, cron daemons - why and how to fix?Failed to start OpenBSD Secure Shell server error when I try to run apt-get or to install Ubuntu upgradesSSH operation timed out / cannot login with SSH until local logon has been completed Ubuntu 18.04





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















When I add users in the PAM section of sshd_config:



UsePAM yes
Match User employee_1
PasswordAuthentication yes


I cannot restart the SSH service and get the message below (Why? pls help):



root@ip-xxxxxxx:/etc/ssh# systemctl status ssh


● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-04-23 18:19:00 UTC; 19s ago
Process: 895 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
Process: 2183 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
Main PID: 895 (code=exited, status=0/SUCCESS)

Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Control process exited, code=exited status=255
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Apr 23 18:19:00 ip-publicip systemd[1]: Stopped OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Start request repeated too quickly.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.









share|improve this question









New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

    – steeldriver
    7 hours ago











  • Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

    – chris1925
    2 hours ago











  • Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

    – steeldriver
    2 hours ago











  • Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

    – chris1925
    2 hours ago


















0















When I add users in the PAM section of sshd_config:



UsePAM yes
Match User employee_1
PasswordAuthentication yes


I cannot restart the SSH service and get the message below (Why? pls help):



root@ip-xxxxxxx:/etc/ssh# systemctl status ssh


● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-04-23 18:19:00 UTC; 19s ago
Process: 895 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
Process: 2183 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
Main PID: 895 (code=exited, status=0/SUCCESS)

Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Control process exited, code=exited status=255
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Apr 23 18:19:00 ip-publicip systemd[1]: Stopped OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Start request repeated too quickly.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.









share|improve this question









New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

    – steeldriver
    7 hours ago











  • Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

    – chris1925
    2 hours ago











  • Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

    – steeldriver
    2 hours ago











  • Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

    – chris1925
    2 hours ago














0












0








0








When I add users in the PAM section of sshd_config:



UsePAM yes
Match User employee_1
PasswordAuthentication yes


I cannot restart the SSH service and get the message below (Why? pls help):



root@ip-xxxxxxx:/etc/ssh# systemctl status ssh


● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-04-23 18:19:00 UTC; 19s ago
Process: 895 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
Process: 2183 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
Main PID: 895 (code=exited, status=0/SUCCESS)

Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Control process exited, code=exited status=255
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Apr 23 18:19:00 ip-publicip systemd[1]: Stopped OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Start request repeated too quickly.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.









share|improve this question









New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












When I add users in the PAM section of sshd_config:



UsePAM yes
Match User employee_1
PasswordAuthentication yes


I cannot restart the SSH service and get the message below (Why? pls help):



root@ip-xxxxxxx:/etc/ssh# systemctl status ssh


● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-04-23 18:19:00 UTC; 19s ago
Process: 895 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
Process: 2183 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
Main PID: 895 (code=exited, status=0/SUCCESS)

Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Control process exited, code=exited status=255
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Apr 23 18:19:00 ip-publicip systemd[1]: Stopped OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Start request repeated too quickly.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.






ssh pam






share|improve this question









New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 9 hours ago









vidarlo

10.9k52852




10.9k52852






New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 9 hours ago









chris1925chris1925

11




11




New contributor




chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






chris1925 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

    – steeldriver
    7 hours ago











  • Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

    – chris1925
    2 hours ago











  • Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

    – steeldriver
    2 hours ago











  • Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

    – chris1925
    2 hours ago














  • 1





    What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

    – steeldriver
    7 hours ago











  • Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

    – chris1925
    2 hours ago











  • Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

    – steeldriver
    2 hours ago











  • Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

    – chris1925
    2 hours ago








1




1





What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

– steeldriver
7 hours ago





What Ubuntu version? I don't see anything wrong with what you did (unless you accidentally corrupted other parts of the config file). You can try executing sshd in debug mode /usr/bin/sshd -d to see if that flushes out the error.

– steeldriver
7 hours ago













Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

– chris1925
2 hours ago





Hi many thanks for replying, not really a linux guy just started almost a month ago forced by work necessity. What i have is Ubuntu 18.04.2 LTS When i issue the /usr/bin/sshd -d result is: -bash: /usr/bin/sshd: No such file or directory

– chris1925
2 hours ago













Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

– steeldriver
2 hours ago





Apologies - that should have been /usr/sbin/sshd -d (or just plain sshd -d, since /usr/sbin should be in root's path)

– steeldriver
2 hours ago













Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

– chris1925
2 hours ago





Here's the result: root@ip-public:/etc/ssh# systemctl restart ssh Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details. root@ip-public:/etc/ssh# /usr/sbin/sshd -d /etc/ssh/sshd_config line 94: Directive 'PrintMotd' is not allowed within a Match block

– chris1925
2 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






chris1925 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1136482%2ffailed-to-start-openbsd-secure-shell-server-error-after-adding-users-to-pam-se%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








chris1925 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















chris1925 is a new contributor. Be nice, and check out our Code of Conduct.













chris1925 is a new contributor. Be nice, and check out our Code of Conduct.












chris1925 is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1136482%2ffailed-to-start-openbsd-secure-shell-server-error-after-adding-users-to-pam-se%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...