ssh -l username@server
miles01110: Thanks, but when i startgive exception that i don`t use correct ssh commandCode:ssh -l username@server
ssh -l vladovs www.helpme.com
That's because that's not the correct syntax.
Example:
Code:ssh -l vladovs www.helpme.com
ssh vladovs@www.helpme.com
osascript -e 'tell application "Terminal" to do script "ssh vladovs@www.helpme.com"'
apple.applescript.AppleScriptEngine engine = new apple.applescript.AppleScriptEngine();
try
{
engine.eval(
"tell application \"Terminal\"\n"+
"activate\n"+
"do script \"ssh -4 vladovs@server"\n"+
"end tell"
);
}
catch(Exception ex){}