0

Coming from windows using Mobaxterm I really miss the ability to record a "macro" for certain commands and able to to play back on the terminal. Whats more Mobaexterm was also able to save ssh session so that all the login info like address are saved? My question is there something similar for Macs? thank you.

1
  • This is rather broad right now. You can use shell scripts to collect shell commands you want to rerun, and OpenSSH configurations to store login details. What exactly do you want your question focus on (you can easily ask the other part in a separate question)? If you're not fully sure, can you please add an example each of both cases and we take it from there?
    – nohillside
    Commented Mar 22, 2020 at 17:41

1 Answer 1

1

Terminal.app (the default macOS terminal application) can be scripted using AppleScript but a better option may be iTerm2, which can be scripted using Python (AppleScript is also supported but it's deprecated).

If you'd like to save ssh sessions your most portable option is to use the OpenSSH client configuration file (typically named ~/.ssh/config). Using it you can configure per connection settings like key, username, etc.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .