connexion d'une VM par ssh

nolf

New Member
Mar 28, 2022
1
0
1
bonjour, je suis nouveau dans proxmox et je rencontre un problème, j’ai installé proxmox dans mon serveur et j’ai créée une VM Debian 10 mais j’arrive pas à me connecter à ma VM debian par ssh, comment faire svp.
j’ai déjà tapé cette commande :
# redirection vers le serveur web
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22
jusque là je me connecte pas
 
hi,

please post in english as that is the language of the forum.
hello, I'm new in proxmox and I have a problem, I installed proxmox in my server and I created a Debian 10 VM but I can't connect to my debian VM by ssh, how to do it please.

Code:
# redirection vers le serveur web
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22

this needs to be in your /etc/network/interfaces file under the correct network interface.
make sure to change the name from eth0 if your NIC is called differently (you can see it with ip a command)

you also probably need to enable masquerading on your network setup [0] inside /etc/network/interfaces, otherwise the port forwarding probably won't work.

after all that is done make sure the IP address of your debian 10 VM (172.32.0.53 according to your post) is reachable from your PVE machine.
you can test it from your PVE first: ssh root@172.32.0.53.
if that works you can try from outside:
ssh root@your.pve.ip.here -p 32768

hope this helps!


[0]: https://pve.proxmox.com/wiki/Networ...ith_tt_span_class_monospaced_iptables_span_tt
 
bonjour je suis tout nouveau dans l'utilisation de proxmox et aujord'hui toutes mes vm ne fonctionne plus . elles sont demarré mais ne fonctionne pas il y a eu un soucis mais je sais pas vous en dire plus est ce que quelqu'un a déjà eu ce bug ? que faire ?
 

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!