We have use case that customer want to create (MacOS)Terminal/Iterm Service on PAM for accessing target server.
In path settings are below. But it did not work.
/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal ssh <Local IP> -p <First Port>
/Users/appensecure/Applications/iTerm.app/Contents/MacOS/iTerm <Local IP> <First Port>
I cd to /Applications/Utilities/Terminal.app/Contents/MacOS/ and do Terminal ssh root@removeserver, terminal windows opened but did not do ssh.
It seems we can not directly pass(ssh) command to terminal.
Anyone has ever configure this on Mac before? Or it is possible doing so. Any Input is appreciated.