Can no longer connect via ssh

Kernels & Hardware, configuring network, installing services

Re: Can no longer connect via ssh

Postby cuckooflew » 2020-08-04 17:28

Code: Select all
sam@sam-1215P:~$ systemctl status sshd
Unit sshd.service could not be found.

Well, this pretty much speaks for itself, Also this: http://forums.debian.net/viewtopic.php?f=30&t=146981 From the other topic you started, you show this:
Code: Select all
openssh-client install
[b]openssh-server deinstall[/b]
openssl install


in your list. You know "deinstall", means remove ? It is simple, easy, to just check and see if it: (openssh-server ) is installed.
Code: Select all
dpkg --list | grep ssh
If it does not show in the list, you need to install it, if it is in the list, you need to look at some other things, check to see if it even is installed first.
I'll try again tomorow.

Unless you change something between.today and tomorrow, it will be the same tomorrow as it is today, EG: install openssh-server today, and it will work again tomorrow.
If everything you need won't fit on a 1gb, flash stick, then you simply need to get a bigger one. Remove other things, will just succeed in breaking something else, eg; foo package , but foo package includes dependencies that foo2 package needs, you need to have enough drive space for all of the essential programs/packages. + some extra.. Even a Minix3 server needs at least 1.2gb to be functional, Debian is going to need more space, even if it is just the base (minimal install)
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Can no longer connect via ssh

Postby cuckooflew » 2020-08-04 18:43

Here is what a working ssh server looks like , using the commands posted in the previous posts:
Code: Select all
cuckoo@debian:~$ systemctl status sshd
* ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-08-04 09:03:04 CDT; 5h 9min ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 412 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
 Main PID: 425 (sshd)
    Tasks: 1 (limit: 1141)
   Memory: 2.4M
   CGroup: /system.slice/ssh.service
           `-425 /usr/sbin/sshd -D

======================
Code: Select all
cuckoo@debian:~$dpkg --list | grep ssh
ii  libssh-gcrypt-4:amd64                0.8.7-1+deb10u1                     amd64        tiny C SSH library (gcrypt flavor)
ii  libssh2-1:amd64                      1.8.0-2.1                           amd64        SSH2 client-side library
ii  openssh-client                       1:7.9p1-10+deb10u2                  amd64        secure shell (SSH) client, for secure access to remote machines
ii  openssh-server                       1:7.9p1-10+deb10u2                  amd64        secure shell (SSH) server, for secure access from remote machines
ii  openssh-sftp-server                  1:7.9p1-10+deb10u2                  amd64        secure shell (SSH) sftp server module, for SFTP access from remote machines
ii  task-ssh-server                      3.53                                all          SSH server

 
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Can no longer connect via ssh

Postby debianneedstuning » 2020-08-09 10:23

FWIW; When I recently had this problem after a version upgrade on a headless server, I was unable to fault find and in the end I apt-get remove'd openssh and openssh-server and reinstalled them. Just my 2c.
debianneedstuning
 
Posts: 214
Joined: 2012-12-03 02:44

Previous

Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable