I'm looking to craft a URL that will open a new iTerm2 window, ssh to a remote host, and give me a shell. I would expect something like
iterm2:@myhost.example.com to work, but that just changes the focus to my existing iTerm2 windows and doesn't ssh to the remote host -- with or without the leading "@". Going with
iterm2:/command?c=ssh%20myhost.example.com mostly does what I'm looking for, but I have to answer the "new window, new tab, etc" prompt first. Using the "silent" parameter will suppress the query, but doesn't let me specify that it should run in a new window.