ssh2 with node doesn't work correctly ?

Hello I am trying to connect to the gpu cloud using ssh2 via the [email protected] using a ssh key. It work using ssh.shell but not ssh.exec (it asks for PTY and when it is set, it doesn't no send any command). I don't know what to do because I faced this problem with runpod and I can yet connect using my linux terminal instead of going through my script) Any idea ?
Solution:
RunPod Blog
How to Achieve True SSH in RunPod
RunPod allows you to get a terminal access pretty easily, but it does not run a true SSH daemon by default. There are plenty of use cases, like needing to SCP or connecting an IDE that would warrant running a true SSH daemon inside the pod. We'll go through the
Jump to solution
3 Replies
ashleyk
ashleyk11mo ago
You can't use basic SSH for that, you need to use normal SSH.
Solution
ashleyk
ashleyk11mo ago
RunPod Blog
How to Achieve True SSH in RunPod
RunPod allows you to get a terminal access pretty easily, but it does not run a true SSH daemon by default. There are plenty of use cases, like needing to SCP or connecting an IDE that would warrant running a true SSH daemon inside the pod. We'll go through the
justin
justin11mo ago
Idk if this is valid - cause I didn't test it beyond just connecting, but I found a new way to do ssh, doing: https://discord.com/channels/912829806415085598/1185336794309468210/1192614128137814144
Want results from more Discord servers?
Add your server