Skip to content

Commit

Permalink
SSH added -l param for user
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Oct 26, 2016
1 parent 1e9849c commit 377372a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sessions/SSHSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ - (int)main:(int)argc argv:(char **)argv
optind = 1;

while (1) {
int c = getopt_long(argc, argv, "p:i:tv", NULL, NULL);
int c = getopt_long(argc, argv, "p:i:tvl:", NULL, NULL);
if (c == -1) {
break;
}
Expand All @@ -189,6 +189,9 @@ - (int)main:(int)argc argv:(char **)argv
case 't':
_options.request_tty = REQUEST_TTY_FORCE;
break;
case 'l':
_options.user = optarg;
break;
default:
optind = 0;
return [self dieMsg:@(usage_format)];
Expand Down

0 comments on commit 377372a

Please sign in to comment.