In linux, via ssh, execute 2 commands (hostname and whoami) against remote host new-jenkins-1, such that you see both results in local terminal (assuming access to new-jenkins-1 is properly configured in ssh config file).
Answer
ssh new-jenkins-1 'hostname; whoami'
^^ note the use of single quotes to enclose the commands in
^^ also note the use of semicolen to seperate the commands within the single quotes
Question
In linux, via ssh, execute 2 commands (hostname and whoami) against remote host new-jenkins-1, such that you see both results in local terminal (assuming access to new-jenkins-1 is properly configured in ssh config file).
Answer
?
Question
In linux, via ssh, execute 2 commands (hostname and whoami) against remote host new-jenkins-1, such that you see both results in local terminal (assuming access to new-jenkins-1 is properly configured in ssh config file).
Answer
ssh new-jenkins-1 'hostname; whoami'
^^ note the use of single quotes to enclose the commands in
^^ also note the use of semicolen to seperate the commands within the single quotes
If you want to change selection, open document below and click on "Move attachment"
Send Remote Commands Via SSH — Malcontent Comics Incorporated Presents: ually your username on the remote host, and "rhost.systemsboy.edu" is your remote system. The command you're sending is contained in single quotes. Here is an example sending multiple commands: <span>ssh systemsboy@rhost.systemsboy.edu 'ls -l; ps -aux; whoami' wherein each command is separated by a semicolon. Finally, here is an example sending a command that requires user interaction:
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.