| Post Reply | RetroFed Forum Forum Index » DevOps |
| Author | Message | ||
|---|---|---|---|
|
d00phy
lemmy.world
d00phy@lemmy.world Joined: 2023-06-12 |
Trying to do a couple things. I have 2 jump hosts I can use to get into my cluster login node. From my laptop to the jump hosts is password. From jump hosts to login node can be key-based, so if I do it all from CLI:
Same process if I use jump2. So first thing I'm trying to do is set up my ~/.ssh/config to use the ProxyJump host and key file to get to login1. I have the following:
I'm not sure how to configure the IdentityFile entries for each jump host. The user on the jump hosts has different id_rsa keys in ~/.ssh, but both are in the authorized_keys file on login1. Second thing I'm trying to do is join or start a tmux session. From CLI, I can run:
I've learned that to just join a running session (tmux a -t mysession), I need to include "RequestTTY yes" in my ssh config entry for login1. What I can't get working is the conditional statement that will fire up a new tmux session if it doesn't already exist. |
||
| 1 Original | |||
| Post Reply |
Back to top |