IP, root, and key: How to connect AI to your server
Currently learning SIN1 · Lecture 03 of 281. First, understand this matter
The address tells the AI which computer it is looking for, the account tells it whose identity it enters, and the key proves login authority.
Each of the three things has its own use
IP (network address) is like a house number, telling the connection tool which computer to find. root (the administrator account with high privileges in Linux systems) is like the name used when entering. The login key (the electronic key proving your access) or password is responsible for proving you can log in. root is not a password. A public IP is not a password; it can appear in the website's network connection; What truly cannot be made public are private keys, passwords, and other credentials that control the system (identity information required for login or execution).
Why can't key files be sent out carelessly?
Key login usually includes both a public key and a private key. The public key can be placed on the server being logged into, while the private key remains on the side of the tool executing the connection. For beginners, first treat the private key as a key to the home door: don't put it in public articles, code repositories, group chat screenshots, or product compressed files. Use the course-specified, authorized AI tool to place the key in its private connection settings or in the specified local file. Let AI read from that location, rather than pasting the content onto the website page. Private storage still requires you to understand how the tool will handle this information.
Knowing what SSH is, you can get started with this sentence
SSH (Logging into Another Computer via Network) allows tools to perform operations on remote computers. Connection tools can be software for course presentations or AI-integrated execution tools. You don't need to learn a whole set of commands first; just save the correct connection information. AI only chats, but that doesn't mean it's connected to the server. Let it explain what tools exist now, whether connections are complete, and what was actually read. The first connection may require verifying the host identity (confirming which computer the other party really is); Let AI explain the verification method—don't habitually skip it.
The first time I just checked, not rushed to install
Connection information has already been placed in the private settings. Please connect to the course server and first check read-only: whether the public IP matches the machine you purchased, whether the system is Ubuntu, and whether there are pagodas, websites, and databases. Report what you actually see; do not install, delete, reinstall, or restart for now.
"Read only" means viewing the information without modifying it. Having AI list systems and existing services first prevents it from treating a computer with an existing website as a blank practice machine. Check the IP and merchant purchase records, confirm the target is correct, and then proceed to the next step.
If you can't connect, explain clearly in this order
- Overtime: Like knocking on a door with no answer. Let AI check addresses, server power-on, SSH entrances, and network restrictions.
- Authentication failed: Seems like reaching the door but the key is wrong. Check the correspondence between account and key or password; don't keep guessing the password.
- Host identity changes: For example, the house number hasn't changed, but the identity inside the door has changed. First, check whether you have reinstalled, replaced the device, or connected to the wrong target.
Send the full error message to AI, covering the key and password. Whether AI runs on local machines or other machines also affects which network address it connects from; This address may not be the same as the one your browser is located in.
Confirm what you can do yourself
Check the system and server information provided by AI, then compare it with the purchase page. After saying "success," it must be able to explain which computer was actually inspected. Before important changes, explain what was changed, what it would impact, and how to restore it. Having root privileges does not mean you should always do everything with maximum privileges.
Official information: see here for further verification
Official Ubuntu SSH Documentation。 The life analogies, exercises, and AI examples in this article are original course explanations. The software menu and version may change, so let the AI compare it with the interface you actually see.