Hi everyone! I'm a newbie with some past knowledge of Linux Redhat.

DTenacious1

New Member
Joined
Jan 23, 2025
Messages
9
Reaction score
1
Credits
73
i started a new interest in Linux and choose an easy start with Mint version. I read that you have to change the default-keys and i'm running in a little complicated action from my part.

THis was my original request:
sudo systemctl status ssh

The SSH OPEN-SERVER and SSH directory access.
So here's my dilemma.

sudo systemctl status ssh
× ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: ena>
Active: failed (Result: exit-code) since Wed 2025-01-22 21:29:30 EST; 9h a>
TriggeredBy: × ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>
CPU: 45ms
------------------------------------------------------------------------------------------------------------------

Jan 22 21:29:30 dtenacious-HP-EliteBook-850-G3 systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Jan 22 21:29:30 dtenacious-HP-EliteBook-850-G3 systemd[1]: ssh.service: Start request repeated too quickly.
Jan 22 21:29:30 dtenacious-HP-EliteBook-850-G3 systemd[1]: ssh.service: Failed with result 'exit-code'.
Jan 22 21:29:30 dtenacious-HP-EliteBook-850-G3 systemd[1]: Failed to start ssh.service - OpenBSD Secure Shell server.
~






If someone could interpret this for me it would be nice,

thanks a lot DTenacious1
 
Last edited:


How are you trying to install Mint, full clean installation to the HDD, multiboot with AN Other system, or on a VM/VB?
 
Code:
So here's my dilemma.

sudo systemctl status ssh
× ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: ena>
Active: failed (Result: exit-code) since Wed 2025-01-22 21:29:30 EST; 9h a>
TriggeredBy: × ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>

Try this...

Code:
sudo systemctl enable sshd
sudo systemctl start sshd

systemctl status -l sshd
 
Helpful systemctl commands for management of systemd.

 
How are you trying to install Mint, full clean installation to the HDD, multiboot with AN Other system, or on a VM/VB?
Thanks Brickwizard! My laptop is HP 850 G3 16ram/250ssd /Linux Mint 22.1-6.4.6
I installed a clean one with Mint then installed VM 7.1_7.1.4-165100 Ubuntu then installed Kali 24.4.
I created a SSH file! I checked the SSH status but no file. Never had access to the SSH. Permissions i think!
I wanted to secure more with SSH then tried to see if open ssh-server was activated but no. So i activated it, the system sees it. Since i'm not a specialist i ask you guys for help and thank you very much.
All this hassle for default keys and a SSH file. Oufff!
 
Hi

As pointed out by this line:

Code:
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>

This is not a systemd error, but a SSH error. The command sshd ends in an error condition (status non-zero) with code 255/EXCE (normally that's 255/EXCEPTION).

Looking around I have found that status code 255 is usually coded by a syntax error in the SSHD config file, /etc/ssh/sshd_config.

Try to gather more information by using sudo sshd -t in the terminal directly to see the error output, and also all the usual log-peeking commands to check the logs where systemd stores them (journalctl -xeu ... etc.)
 
Hi Dos! here's a png of the commands you specified.
Code:
So here's my dilemma.

sudo systemctl status ssh
× ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: ena>
Active: failed (Result: exit-code) since Wed 2025-01-22 21:29:30 EST; 9h a>
TriggeredBy: × ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>

Try this...

Code:
sudo systemctl enable sshd
sudo systemctl start sshd

systemctl status -l sshd
Code:
So here's my dilemma.

sudo systemctl status ssh
× ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: ena>
Active: failed (Result: exit-code) since Wed 2025-01-22 21:29:30 EST; 9h a>
TriggeredBy: × ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>

Try this...

Code:
sudo systemctl enable sshd
sudo systemctl start sshd

systemctl status -l sshd
 

Attachments

  • Teminal SSH.png
    Teminal SSH.png
    34 KB · Views: 21
Hi

As pointed out by this line:

Code:
Process: 14667 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCE>

This is not a systemd error, but a SSH error. The command sshd ends in an error condition (status non-zero) with code 255/EXCE (normally that's 255/EXCEPTION).

Looking around I have found that status code 255 is usually coded by a syntax error in the SSHD config file, /etc/ssh/sshd_config.

Try to gather more information by using sudo sshd -t in the terminal directly to see the error output, and also all the usual log-peeking commands to check the logs where systemd stores them (journalctl -xeu ... etc.)
Hi! Thank for your interest. I did these commands for now, tell me more if you can and i will try the ones you presented, ok!
 

Attachments

  • Teminal SSH.png
    Teminal SSH.png
    34 KB · Views: 21
VM's are not my thing [I know the basics,and that's about it] if you do not have any luck with the reply from our college @gvisoc you may get more responses if you change the title of your post, it looks like an introduction not a question,
 
Hi! Thank for your interest. I did these commands for now, tell me more if you can and i will try the ones you presented, ok!
Hi! I tried your command and this picture will show this:
 

Attachments

  • terminal SSH2.png
    terminal SSH2.png
    45.7 KB · Views: 28
Those are the lines that are causing the error. You should check the SSH documentation to fix them.
 
Hi! Thank for your interest. I did these commands for now, tell me more if you can and i will try the ones you presented, ok!
Hi again! here's my SSH file config. do u see errors here? Thanks
 

Attachments

  • SSH file.png
    SSH file.png
    24.9 KB · Views: 24
Welcome to the Forum.
1737672619633.gif
 
Hi again! here's my SSH file config. do u see errors here? Thanks
Hi. I am not an expert by any means, but that space you have at the start of line 12 might be breaking something.

Also, that ellipsis at the end of your screenshot is really weird. That “300…”.

Is this configuration file the one included in your system or did you get that from somewhere else?
 
Also: it’s UsePAM, not UsePAN.

Ok, I think from here you really should reinstall the sshd package and start with the configuration provided by the system, and then read the documentation carefully to get whatever you want to get up and running.

I don’t know where did you get that content but it’s not correct.
 
Hello @DTenacious1
Welcome to the Linux. org forum, enjoy the journey!
Can't be of mush help to you on this one but sure you'll get the answer from someone here.
 
Also: it’s UsePAM, not UsePAN.

Ok, I think from here you really should reinstall the sshd package and start with the configuration provided by the system, and then read the documentation carefully to get whatever you want to get up and running.

I don’t know where did you get that content but it’s not correct.
Thank friend! I saw it on the net because i don't know the Linux system very well. It's all about knowing about you read in front of you. If you put dirt in dirt will go out! :-) Thanks for the advise dude, you're the best!!!
 
Is it just me, or does this read rather like a ChatGPT Q & A session..? o_O


Mike.
wonder-small.gif

Nope. ChatGPT spells better and uses better punctuation. It also outputs text in a similar manner, using the same general format for everything. There are some odd turns of phrase and a degree of exuberance. But, it doesn't strike me as being "AI".
 

Members online


Top