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.
ssh alice server.exampleIncorrect. 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.
ssh://alice@server.exampleIncorrect. 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
- Use a disposable VM or test account when validating installation and SSH behavior.
- Exact command output can vary slightly by distribution and OpenSSH version.
Foundation review
Identify the scope
The separator and argument position are part of SSH command syntax; URI notation is a different convention.
Check the side effect
Resolve the host name and verify the remote account’s authorization without placing secrets on the command line.