Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

For routine VPS administration, five OpenSSH tools cover nearly everything: ssh opens a shell, ssh-keygen creates your key pair, ssh-copy-id installs the public key, scp copies files, and rsync synchronizes directories. Use ssh -v when a connection fails and ssh-keygen -R when a rebuilt server presents an obsolete host key.

Start by creating an Ed25519 key, install it, and prove that key login works in a second session. Only then change the SSH daemon configuration to disable passwords or restrict root access. Keeping the original session open while testing prevents a configuration mistake from locking you out.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before connecting

You need the VPS hostname or IP address, a user account that is allowed to log in, and the SSH port. The standard port is commonly used, but a provider or administrator may have changed it. You also need an SSH client on your local computer. OpenSSH is normally available on Linux and macOS; Windows users can use an OpenSSH client where one is installed.

  • Know the account name, such as admin or another non-root user.
  • Have the server address, for example vps.example.net or an IP address.
  • Confirm the port. Use the default when no alternate port was supplied; otherwise substitute the assigned number.
  • Keep an existing working session open whenever you change server-side SSH settings.

Connect to a VPS with SSH

Use the account and host

The basic form is:

ssh user@host

Replace user and host with your values. On the first connection, SSH displays the server’s host-key fingerprint and asks whether to trust it. Confirm that fingerprint through a channel you trust before accepting it. Once accepted, the host key is stored locally and checked on later connections.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

Connect on a non-standard port

Pass the port with a lowercase -p:

ssh -p 2222 user@host

A port number is part of the connection details, not part of the hostname. If you omit it, the client tries its default and can report a timeout or connection refusal even though the VPS is running.

Create a secure SSH key pair

Preferred option: Ed25519

Run ssh-keygen on your local computer, not in a shell on the VPS:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ssh-keygen -t ed25519 -C "you@example.com"

The program asks where to save the private key and whether to protect it with a passphrase. Accepting the suggested location is convenient if you have no existing key there. A passphrase protects the private key if the file is copied from your computer; it does not get sent to the server during login.

The resulting pair has a private key and a public key. Keep the private key confidential. The public key is the one you install on the VPS and can be shared with the server administrator.

Compatibility option: RSA

For an older SSH implementation that does not support Ed25519, create a 4096-bit RSA key:

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
ssh-keygen -t rsa -b 4096

Ed25519 is the modern default because it is fast and strong. RSA 4096 is a fallback for legacy compatibility, not a reason to replace an otherwise working Ed25519 setup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install your public key on the VPS

Use ssh-copy-id

With password access still enabled, send the public key to the account:

ssh-copy-id user@host

For a server listening on port 2222, include the lowercase port option:

ssh-copy-id -p 2222 user@host

The utility adds the public key to the account’s authorized_keys file. It may ask for the account password once; subsequent logins can use the key instead.

When ssh-copy-id is unavailable

Some Windows PowerShell installations do not include ssh-copy-id. Use a manual installation instead: display or open the public-key file created by ssh-keygen, copy its complete single line, connect using the account’s existing password, and append that line to the account’s ~/.ssh/authorized_keys file on the VPS. Preserve the line without wrapping or adding characters. The private key must remain only on your local computer.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Test key login before changing security settings

Open a second terminal window and connect again with the same account:

ssh user@host

Use the port option if required. A successful login without a password prompt confirms that the server can read the public key and your client can use the matching private key. Do not close the original session until this test succeeds and you have tested any later configuration change.

If you have several private keys, identify the intended one explicitly with the SSH client’s identity option, for example ssh -i /path/to/private_key user@host. Protect the file and never paste its private contents into a ticket, chat, or server configuration.

Copy individual files with scp

scp is the straightforward choice for a one-off transfer. The direction is determined by which side of the colon contains the remote host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Task Command
Upload one local file scp file user@host:/path
Download one remote file scp user@host:/path/file .
Upload a directory and its contents scp -r dir user@host:/path
Use a non-standard port scp -P 2222 file user@host:/path

Notice the uppercase -P in scp. This differs from the lowercase -p used by ssh and ssh-copy-id. Quote a local or remote path if it contains spaces, and make sure the destination account can write to the target directory.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Choose scp for simple, complete copies

  • It is easy to read and suitable for a few files or a one-time deployment.
  • The recursive form copies a directory tree, but it does not maintain an ongoing synchronization relationship.
  • For a large directory that you will copy repeatedly, use rsync instead so unchanged data is not retransmitted.

Synchronize directories with rsync over SSH

Run an incremental synchronization

The common SSH transport form is:

rsync -avz -e ssh src/ host:dst/

The trailing slash on src/ means “copy the contents of this directory.” Without it, the source directory itself may become a directory inside the destination. The command compares source and destination and sends only changes, which makes repeated deployments faster than copying everything again.

  • -a enables archive-style recursive copying and preservation behavior.
  • -v prints what is being processed.
  • -z compresses data during transit.
  • -e ssh tells rsync to use SSH as its transport.

If the SSH daemon uses another port, pass that port through the SSH command, for example:

rsync -avz -e "ssh -p 2222" src/ user@host:dst/

Preview changes with a dry run

Before modifying the destination, use:

rsync -avzn -e ssh src/ user@host:dst/

The -n option performs a dry run. Review the file list and destination path, then rerun without -n only when the result is what you expect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Understand the danger of –delete

rsync --delete removes destination files that are absent from the source. That can be useful when the destination must exactly mirror a build directory, but it can also erase uploads or manually created files. Always perform a dry run first, verify the source and destination sides, and use deletion only when that mirror behavior is intentional.

Diagnose a connection that fails

Read verbose SSH output

Add -v to see the client’s negotiation and authentication progress:

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
ssh -v user@host

The output helps identify whether the failure occurs while resolving the host, opening the network connection, verifying the host key, offering a private key, or authenticating the account. Do not publish the complete output if it contains internal hostnames, usernames, or other sensitive details.

Resolve a host-key warning after a rebuild

A VPS reinstall can legitimately generate a new host key. If the client says that the host identification has changed, do not blindly bypass the warning: first verify that the address now points to the rebuilt server and that the change was expected. Then remove the old local entry:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ssh-keygen -R hostname

Reconnect and verify the new fingerprint before accepting it. This command removes the saved entry for the specified hostname; repeat the check for an IP address if you normally connect by IP.

Separate authentication errors from network errors

  • A timeout or refusal usually occurs before a username or key is evaluated; check the host, port, firewall, and whether the SSH service is listening.
  • A password prompt when you expected key authentication means the key may not be installed for that account, the client may be offering a different private key, or the server may reject public-key authentication.
  • A host-key mismatch is a trust-record problem, not a reason to disable host-key checking.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Harden the SSH daemon safely

Locate and edit the server configuration

Server-side SSH settings are in /etc/ssh/sshd_config. Edit the file with administrative privileges and make a backup or otherwise preserve the previous contents so you can restore a known-good configuration.

Settings that control login methods

Directive Purpose Typical hardening choice
PasswordAuthentication Controls password-based SSH authentication. The OpenBSD configuration reference lists yes as the default. Set to no only after key login works in a separate session.
PubkeyAuthentication Controls public-key authentication. Keep it enabled with yes when using SSH keys.
PermitRootLogin Controls direct remote root logins. no blocks them; prohibit-password allows key-based root login while rejecting password authentication; yes permits root login according to other authentication rules.

The accepted PermitRootLogin values also include forced-commands-only. Distribution defaults differ: for example, RHEL 10 uses prohibit-password by default, while defaults on other releases may differ. Check the documentation and effective configuration on the actual VPS rather than assuming one distribution’s behavior applies everywhere.

Apply restrictions only where intended

OpenSSH supports Match blocks, allowing directives such as PasswordAuthentication and PermitRootLogin to be scoped to an address or other connection criteria. Place and indent these blocks carefully because settings inside a Match section apply only to connections that satisfy its condition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a safe change sequence

  1. Generate and install the key.
  2. Prove key login in a second terminal while the original session remains open.
  3. Set PubkeyAuthentication yes and, if appropriate for your policy, PasswordAuthentication no.
  4. Choose a root policy: PermitRootLogin no for no direct root SSH, or prohibit-password when key-only root access is deliberately required.
  5. Validate the file with sshd -t. The exact binary path and available validation behavior can vary, so confirm the command on the target distribution.
  6. Restart the SSH service using the service name supplied by that distribution, commonly systemctl restart ssh or an sshd-named service.
  7. Test a fresh connection immediately. Keep the old session until the new policy is confirmed.

If validation reports an error, do not restart the daemon. Correct the syntax or restore the last working configuration first. A service-name mismatch can also make a restart command fail even when the configuration itself is valid.

Choosing the right command

Need Best starting command Why
Open an interactive shell ssh Direct remote administration.
Create credentials ssh-keygen Creates a local public/private key pair.
Install a public key ssh-copy-id Adds the key to the remote account’s authorized keys.
Copy a few files once scp Simple file and recursive directory transfers.
Repeat or mirror transfers rsync Sends only changes and supports dry runs.
Investigate a failed connection ssh -v Shows connection and authentication stages.
Replace a stale host record ssh-keygen -R Removes an old known-host entry after verification.

Common mistakes to avoid

  • Disabling passwords before testing the key in another session.
  • Using lowercase -p with scp; its port option is uppercase -P.
  • Installing the private key instead of the public key. Only the public key belongs in authorized_keys.
  • Running rsync --delete without a dry run and a confirmed source/destination direction.
  • Deleting a changed host key without checking whether the VPS was actually rebuilt or reassigned.
  • Assuming a root-login default or SSH service name from another Linux distribution applies to this VPS.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.