# How remote server access works, as summarized by a beginner developer who used to copy and paste SSH commands: public key authentication and error handling

- Link: https://qiita.com/Yuzuki-ki/items/b23e578d820d411bcb92?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
- Discussion: https://startupxo.com/en/1468/
- Posted by startupxo at 2026-11-26T18:25:21.765Z
- 0 points, 0 comments, kind story, origin curated
- Written in ko, machine translated to en

## Summary

- SSH is a way to log in to a faraway server from your computer over encrypted communication, so you can check logs, edit files, and restart apps. The basic form is ssh username@host, and if the port is not 22, specify it with -p.
- The confirmation message shown on first connection includes the server's unique fingerprint. You can spot a fake server only if you compare it with a fingerprint obtained through another route, such as the administrator, the AWS EC2 system log, or the official GitHub documentation, before typing yes.
- Public key authentication places the public key on the server and the private key on your computer. If the private key leaks, anyone can get into the server, so never send it through Slack, email, or Git. If the key file permissions are too loose, SSH refuses to use it.
- If you write connection details in ~/.ssh/config, you can connect with a short name like ssh dev-server. If you cannot connect, check the detailed log with ssh -v. For Permission denied, check the username, the key, and the public key registration. A timed out error means the server could not be reached.

## Sources

- Qiita: https://qiita.com/Yuzuki-ki/items/b23e578d820d411bcb92?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

## Comments (0)

No comments yet.

JSON: https://startupxo.com/api/v1/item.json?id=1468&lang=en
