惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
T
The Blog of Author Tim Ferriss
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
量子位
I
InfoQ
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
J
Java Code Geeks
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
V
V2EX
腾讯CDC
P
Proofpoint News Feed
A
About on SuperTechFans
爱范儿
爱范儿
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI

Runpod Blog.

New Runpod datacenter now live: AP-IN-1 Track GPU spend across your team with Cost Centers The GPU supply supercycle is here. Here’s what AI builders need to know. Community Spotlight: One-click AI image and video generation on Runpod with SwarmUI | Runpod Blog Community Spotlight: LoRA Pilot Data Prep to Inference Introducing the Runpod Assistant: Manage Your Cloud GPU Resources with Natural Language OpenAI's Parameter Golf: Train the Best Language Model That Fits in 16MB on Runpod LLM inference optimization: techniques that actually reduce latency and cost Pruna P-Video and Vidu Q3 public endpoints now available on Runpod Runpod brand spelling guide Quickstart - Runpod Documentation The AI market looks nothing like the narrative Training StyleGAN3 with Vision-Aided GAN on Runpod KoboldAI – The Other Roleplay Front End, And Why You May Want to Use It How to Connect Cursor to LLM Pods on Runpod for Seamless AI Dev Community Spotlight: How AnonAI Scaled Its Private Chatbot Platform with Runpod Prompt Scheduling with Disco Diffusion on Runpod Runpod's Latest Innovation: Dockerless CLI for Streamlined AI Development Run Your Own AI from Your iPhone Using Runpod Introducing Flash: Run GPU workloads on Runpod Serverless: No Docker required Use Claude Code with your own model on Runpod: No Anthropic account required Avoid Errors by Selecting the Proper Resources for Your Pod What hackers built on Runpod at TreeHacks 2026 Easily Back Up and Restore Your Pod with Cloud Sync + Backblaze B2 The Complete Guide to GPU Requirements for LLM Fine-Tuning AI Guides, Tutorials & GPU Infrastructure Insights | Runpod Your first Claude Code project within Runpod: a complete setup guide 10 billion Serverless requests and counting Building for resilience: Runpod’s response to the AWS us-east-1 outage How to Connect Google Colab to Runpod
Enable SSH Password Authentication on a Runpod Pod
River Snow · 2024-12-13 · via Runpod Blog.

When connecting to a Runpod Pod, a common issue is that SSH doesn't work out of the box. In this tutorial, we will examine a method of using a username and password to access a Runpod Pod through SSH. By the end of this guide, you'll be able to securely connect to your Pod using password authentication.

Prerequisites

Before you begin, ensure that you have the following:

  • A Runpod Pod that you can access and modify
  • Basic knowledge of using the command line and SSH

Setting the Root Password

The first step is to set a password for the root user on your Pod. This can be done by running the following command:

passwd root

You will be prompted to enter a new password. It's crucial to set a strong password here. Consider using a password generated by a password manager or follow the guidelines provided by the Electronic Frontier Foundation (EFF) for creating secure passwords.

Next, see how to enable password authentication.

Enabling Password Authentication

If your Pod doesn't have Vim installed, you can install it using apt update; apt install vim.

To enable password authentication for SSH, follow these steps:

1. Access the SSH configuration file:

2. Locate the line that starts with PasswordAuthentication. Uncomment it if necessary and set its value to yes:

3. (Optional) If you want to allow root login with a password, find the line that starts with PermitRootLogin. Change its value to yes:

4. (Optional) If you want to disable public key authentication, add or modify the following line:

5. Save the changes and exit the editor. In vi, you can do this by pressing Esc, then typing :wq and pressing Enter.

6. Restart the SSH service to apply the changes:

Now that your password is set and you've applied changes, access your Pod.

Accessing the Pod

With password authentication enabled, you can now SSH into your Pod using a username and password:

Replace username@server_ip -p port with the appropriate values.
You can find this information by clicking the "Connect" button on your Pod's page in the Runpod dashboard.

Enter the password you set earlier when prompted, and you should now be connected to your Pod via SSH using password authentication.

Conclusion

In this article, you learned how to enable SSH password authentication on a Runpod Pod.
By setting a root password and modifying the SSH configuration file, you can now securely connect to your Pod using a username and password.

Remember to always use strong passwords and consider disabling password authentication and using public key authentication instead for enhanced security.

Start up a Pod on Runpod