AppleScript自动连接SSH服务器

tell application "Terminal"
    do script "ssh ssh服务器地址"
    delay 0.8
    tell application "System Events"
        tell process "Terminal"
            set frontmost to true
            delay 1
            keystroke "ssh服务器密码"
            keystroke return
            
            
        end tell
    end tell
    
end tell

你可能感兴趣的:(AppleScript自动连接SSH服务器)