[SOLVED] SSH / FTP zugriff auf eine VM

cainam

Member
Aug 5, 2020
51
0
11
44
Hallo zusammen
Wie kann ich mit FTP und SSH auf eine VM (mit Linux drauf) zugreifen. Ich schaff es nicht...
Danke und Gruss Raphi
 
hi,

kannst du ein bisschen erzaehlen was genau nicht funktioniert?

wenn du von aussen zugreifen willst dann muss der ssh oder ftp port von aussen erreichbar sein.
 
Zugriff nur innerhalb netzwerk

naja wenn ich über terminal mit "ssh root@192.168.0.x" zugreifen versuche kommt zugriffsfehler. gleiches über ein ftp programm (port 21/22) versucht...
 
okay.

* ist der ssh service aktiviert und am laufen?

du kannst deinem ssh kommando -v hinzufuegen, um mehr infos zu sehen.

* ist firewall aktiviert? vielleicht musst du diese ports erlauben
 
key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Rapha 1/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u2
debug1: match: OpenSSH_7.9p1 Debian-10+deb10u2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.0.xx:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none
debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:xxxxxx
debug1: Host '192.168.0.45' is known and matches the ECDSA host key.
debug1: Found key in /Users/Rapha 1/.ssh/known_hosts:10
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/Rapha 1/.ssh/id_rsa
debug1: Trying private key: /Users/Rapha 1/.ssh/id_dsa
debug1: Trying private key: /Users/Rapha 1/.ssh/id_ecdsa
debug1: Trying private key: /Users/Rapha 1/.ssh/id_ed25519

danach passwort eingeben und dann kommt das

debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
 
vielleicht in /etc/ssh/sshd_config musst du PermitRootLogin yes einstellen
 
sshd service restarted nach der einstellung?
 
in der VM systemctl restart ssh ausfuehren und nochmal probieren.
 
super!

du kannst den thread als [SOLVED] markieren (indem du beim "edit thread" den solved prefix benutzt), damit die anderen wissen was zu erwarten :)
 

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!