Use OpenSSH to connect to server.example.test as remote user deploy.
Use the default SSH port.
Which command is appropriate?
ssh USER@HOST specifies the remote login name and host. The alternative -l USER form is also available.
Detailed explanation
ssh deploy@server.example.testCorrect. It specifies deploy as the remote user.
Correct. It specifies deploy as the remote user.
ssh server.example.test@deployIncorrect. The user and host are reversed.
Incorrect. The user and host are reversed.
ssh deploy:server.example.testIncorrect. ssh does not use a colon to separate user and host.
Incorrect. ssh does not use a colon to separate user and host.
ssh --host server.example.test --user=deployIncorrect. Those long options are not the standard OpenSSH ssh syntax.
Incorrect. Those long options are not the standard OpenSSH ssh syntax.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'deploy@server.example.test -> user deploy on host server.example.test'Expected result
deploy@server.example.test -> user deploy on host server.example.testKey points
- Use user@host
- Remote account
- Default port is normally 22
Notes
- Environment: OpenSSH client構文の表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.