Alternative to terminal for ssh/nc?

Both Terminal and iTerm2 allow for multiple profiles with the option of executing a custom command at session start. I just get it to execute the SSH command and have shortcuts assigned for different boxes.

Never tried but i believe iTerm2 supports Keychain for passwords, so you might be able to leverage that for password auth SSH tunnels.
 
Last edited:
Cool. The contents of id_rsa.pub should be in authorized_keys on the pi. In Termius or whichever program you've chosen you should be able to specify id_rsa as the private key, sometimes it's chosen by default.
I did try that, it didn't work.

Both Terminal and iTerm2 allow for multiple profiles with the option of executing a custom command at session start. I just get it to execute the SSH command and have shortcuts assigned for different boxes.
Oh, I never even realised Terminal has profiles. That might be the way to do it, thanks.
 
Morning all.

I use terminal a lot. I've always got at least two windows open where I'm connected to a Pi either via ssh or nc.

I generally log on to the Pis with key pairs (or whatever they're called) and I type the login commands manually in terminal. I don't care about fancy editors and stuff like that, I just want to be able to select the connection and have it happen automatically, ideally with the saved window size.

For example, this is how my two sessions look on my MBA (the grey background is from the app I'm running on the session).

UyHb0KP.png


I detest dark mode so it needs to be white on black, just like a normal terminal window.

Is there such an app that I can use for this? It would be nice if it can sync connections between Macs and I don't mind paying a couple of quid if I have to but not a subscription.

Ta.
Not exactly what you are looking for but you can use the ~/.ssh/config file to automatically connect with the correct user and SSH key pair.

Edit: Warp is by far the best terminal app on the Mac I have used.
 
Last edited:
You can probably do everything you want with the stock Terminal app and a combination of profiles and window groups.

To set up profiles, click Terminal on the top menu -> Settings. On the profiles tab select the profile that has the colour customisations you want then click duplicate. Now on your duplicated profile click the Shell tab and set the run command as "ssh your_pi_user@your_pi_ip_address" (whatever you normally manually type to connect) - tick run inside shell. Repeat for your other connections.

Now you can launch it from Shell on the menu and clicking New Window or New Tab.

To use window groups, open up the connections how you want them (after launching via the profiles you created) and then click Window -> Save Windows as Group. You can then restore them via Window -> Open Windows Group. That should open in the exact positions you saved them in.
 
Last edited:
You can probably do everything you want with the stock Terminal app and a combination of profiles and window groups.

To set up profiles, click Terminal on the top menu -> Settings. On the profiles tab select the profile that has the colour customisations you want then click duplicate. Now on your duplicated profile click the Shell tab and set the run command as "ssh your_pi_user@your_pi_ip_address" (whatever you normally manually type to connect) - tick run inside shell. Repeat for your other connections.

Now you can launch it from Shell on the menu and clicking New Window or New Tab.

To use window groups, open up the connections how you want them (after launching via the profiles you created) and then click Window -> Save Windows as Group. You can then restore them via Window -> Open Windows Group. That should open in the exact positions you saved them in.
That's really good, thanks. I've got the two windows I always open, configured in a window group.

The question is whether I can script that Window Group to open via Alfred now :)
 
Back
Top Bottom