LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2018, 11:52 AM   #1
SubNetSystem69s
LQ Newbie
 
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
Question How Fix this Issue rescue-ssh.target is a disabled or a static unit, not starting it


*uname -a
Linux xxxxxx 4.18.0-kali1-amd64 #1 SMP Debian 4.18.6-1kali1 (2018-09-10) x86_64 GNU/Linux

*apt list openssh-server -a
Listing... Done
openssh-server/kali-rolling,now 1:7.8p1-1 amd64 [installed]
openssh-server/kali-current 1:6.7p1-5 amd64

openssh-server/kali-rolling 1:7.8p1-1 i386
openssh-server/kali-current 1:6.7p1-5 i386

*chkconfig -l ssh
ssh 0ff 1ff 2n 3n 4n 5n 6ff

*systemctl status ssh.service
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2018-10-16 13:02:30 WIB; 2min 0s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 5194 (sshd)
Tasks: 1 (limit: 4915)
Memory: 1.1M
CGroup: /system.slice/ssh.service
└─5194 /usr/sbin/sshd -D

*dpkg-reconfigure openssh-server
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:e4OcOhxIa+B7QxDCM11LfkDdE/iU2MwSPYK2dm7npkg root@SubNetSystem (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:ABo5yaVcpeCD2T6FHteARRbhQAVYKjMTAE+2PdCFWiM root@SubNetSystem (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:tYtFtuFbXwhXcG5WpxgP62MLTrEhb7T4nPW53ho8fnM root@SubNetSystem (ED25519)
rescue-ssh.target is a disabled or a static unit, not starting it.

*systemctl cat sshd.service

/lib/systemd/system/ssh.service
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target auditd.service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run

[Service]
EnvironmentFile=-/etc/default/ssh
ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/usr/sbin/sshd -t
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify
RuntimeDirectory=sshd
RuntimeDirectoryMode=0755

[Install]
WantedBy=multi-user.target
Alias=sshd.service

*sudo systemctl enable ssh.service
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh

Note : Please correct it if there is a mistake in running it, I really appreciate any suggestions and
I am a little hesitant about the Setup Patch SSHD Config that I have, please guide the original SSHD default setup
 
Old 10-16-2018, 05:25 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
It's not quite clear to me what is your problem. Why is it an issue if dkpg-reconfigure displays the message "rescue-ssh.target is a disabled or a static unit, not starting it"?

By the way, use [code][/code] tags around your code. It will become much easier to read, and the smileys in your output will disappear (they are cute but distracting). See the link in my signature.

Last edited by berndbausch; 10-16-2018 at 05:27 PM.
 
  


Reply



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
X server disabled after PCLinuxOS update - is there a way to fix this, please?? cousinlucky Linux - Distributions 1 11-28-2016 02:25 AM
LXer: New Linux distro will target disabled users LXer Syndicated Linux News 0 02-05-2013 10:20 AM
how can i fix partitions in rescue model? icej Linux - General 3 09-02-2010 05:43 AM
Java non-static variable cannot be referenced from a static context issue rickrvo Programming 2 02-12-2010 03:26 PM
How to fix this error log[DISABLED SET-ID ] Cephas Linux - Security 1 07-31-2002 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 AM.

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