Ubuntu Lxc SSH startet nicht automatisch

Wowa Fmn

New Member
Sep 7, 2017
3
0
1
30
Hallo Leute,

Ich habe gestern frisch proxmox auf meinen server installiert. Nun habe ich das Problem, dass in allen Ubuntu lxc Containern der SSH Service nicht von alleine startet, nachdem man den Container rebootet.
Auch wenn ich systemctl enable ssh verwende.

Ich möchte die Container in meinem Netzwerk direkt über SSH ansprechen und nicht erst über den Host mithilfe von "pct enter".

Vielen Dank im Voraus :)
 
Was ist den die start Einstellung
und was fuer Container sind das (Distribution)
Code:
systemctl status ssh
 
Vielen Dank für deine Antwort Wolfgang.

Ich habe tatsächlich nicht erwähnt welche Distribution ich verwende. Versucht habe ich es mit 17.04 und 14.04 Ubuntu. Es scheint bei 14.04 zu funktionieren jedoch nicht bei 17.04. Leider benötige ich 17.04 für nextcloud.

Sobald ich den Ssh Service enable auf 17.04. kommt folgende Ausgabe bei systemctl status ssh:

Code:
root@nextcloud:~# systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-09-07 01:33:01 UTC; 7h ago
 Main PID: 361 (sshd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/ssh.service
          └─361 /usr/sbin/sshd -D

Sep 07 01:33:01 nextcloud systemd[1]: Starting OpenBSD Secure Shell server...
Sep 07 01:33:01 nextcloud sshd[361]: Server listening on 0.0.0.0 port 22.
Sep 07 01:33:01 nextcloud sshd[361]: Server listening on :: port 22.
Sep 07 01:33:01 nextcloud systemd[1]: Started OpenBSD Secure Shell server.

Sobald ich den Container neustarte erhalte ich beim selben Befehl den folgenden Output.

Code:
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
 
Ich kann das hier nicht nachvollziehen mit einer neu installierten Ubuntu 17.04.

Kann es sein das du ein systemd dependency Problem hast?
Oder hast du spezielle Einstellungen am Container.
 
Ich kann das hier nicht nachvollziehen mit einer neu installierten Ubuntu 17.04.

Kann es sein das du ein systemd dependency Problem hast?
Oder hast du spezielle Einstellungen am Container.

Hm ich habe einfach ganz normal den Container erstellt ohne fancy Einstellungen. Also das ubuntu 17.04 template aus dem GUI verwendet und anschliessend ssh eingerichtet. Das Problem trat also direkt auf.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!