Connect to server.example as user alice over the standard SSH port.
Specify the remote account explicitly.
Which command is appropriate?
ssh user@host names the remote account. If omitted, the SSH client normally uses the local user name.
Detailed explanation
ssh server.example/aliceIncorrect. A slash is not the standard user/host separator for ssh.
Incorrect. A slash is not the standard user/host separator for ssh.
ssh alice server.exampleIncorrect. ssh expects the destination as one host argument, not separate user and host arguments in this form.
Incorrect. ssh expects the destination as one host argument, not separate user and host arguments in this form.
ssh alice@server.exampleCorrect. ssh alice@server.example logs in as alice.
Correct. ssh alice@server.example logs in as alice.
ssh://alice@server.exampleIncorrect. This is a URI-like form, not the normal ssh command syntax.
Incorrect. This is a URI-like form, not the normal ssh command syntax.
Try it yourself
An example you can run in a temporary verification environment.
ssh -G alice@server.example | headExpected result
接続を行わず、解決されたSSH設定を表示するKey points
- user@host
- Remote login
- Configuration can override defaults
Notes
- Environment: OpenSSH 9.x
- 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.