Problems with OpenSSH and SystemD

stealthycoder

New Member
Joined
Oct 16, 2022
Messages
5
Reaction score
1
Credits
36
Hello, I'm getting an issue, I'm trying to setup a reverse ssh tunnel in a systemd service,tho when launching it i get an ssh 255 Excep and Host key verif failed. However when running the command in my terminal it works normally. Here is a bit of info: My ssh command /usr/bin/ssh -vvv -N -R 2222:localhost:22 [email protected] -p 1111 and my service file
[Unit] Description=SSH TUNNEL After=network.target [Service] ExecStart=/usr/bin/ssh -vvv -N -R 2222:localhost:22 [email protected] -p 1111 [Install] WantedBy=multi-user.target
and my logs

All help appreciated, thanks
 


G'day @stealthycoder and welcome to linux.org :)

If you took a look around before posting, I would think that this would draw more attention in our Networking subforum.

Take a look through there and let me know and I can move this there.

Chris Turner
wizardfromoz
 
What does ls -la /dev/tty show?
 
reverse tunnels can be tricky.
On the remote host, can you ssh back to the localhost with a -vv ?
 
reverse tunnels can be tricky.
On the remote host, can you ssh back to the localhost with a -vv ?
i don't really have how, since my raspberry pi is protected by my network, and i'm not port forwarding, and thus my vps cannot connect without a reverse tunnel, which is the reason im creating it, unless you mean when i have the tunnel succ created and login to my vps and ssh'ing to localhost then the output is
Code:
https://pastebin.com/rYt0HxhH
 

Members online


Top