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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
G
Google Developers Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Check Point Blog
J
Java Code Geeks
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
A
About on SuperTechFans
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

博客园 - bregman

codexapp不能显示数学公式问题 统计用户使用目录 intel mac 安装 最新版torch node安装 使用Codex问题 测评数据集和大模型报告 litellm 使用介绍 容器中pytorch的cpu速度很慢,原因找到了 KL 散度 podman 替代docker 【代码片段】key-value格式解析 安装 flash-attention 大模型课件 CSE 234: Data Systems for Machine Learning 大模型训练ultrascale-playbook bash脚本片段 mac 下镜像使用 使用大模型 调用本地大模型 语言模型资料 使用Python内置的 pdb 模块 debug 快手MARM 文章理解 【脚本片段】cat中防止变量替换
windows通过ssh去连接Linux服务器
bregman · 2025-07-07 · via 博客园 - bregman

windows 机器去连接远端服务器中的linux系统。linux系统由docker容器启动,默认是root 账号。sshd 默认禁止root账号登陆, 比较简单的是通过ssh的密钥直接登陆。另外,linux 系统不能访问外网,需要传递文件。

linux开启ssh服务

  • ubuntu系统
service ssh start
  • 如果是镜像自动拉起,添加启动命令 /sbin/sshd -D

vscode 远程开发使用

  1. 将windows的系统中生成ssh密钥。 在git bash 中 用ssh-keygen 生成密钥对。

    $ ssh-keygen
    
    • 看到下面提示直接按Enter键,即可。 即在 ~/.ssh/目录下得到id_rsa 和id_rsa.pub 两个密钥文件,对应私钥和共钥。
      Generating public/private rsa key pair.
      Enter file in which to save the key (/c/Users/pcp/.ssh/id_rsa):
  2. 复制共钥文件内容,粘贴到linux 系统的授权key文件中  ~/.ssh/authorized_keys.

  3. 在windows系统中配置 ~/.ssh/config 登陆信息, 方便用 ssh swift 直接登陆

  Host swift 
    HostName 172.23.254.15 
    User root 
    Port 30299
  1. 在vscode 中, 通过ssh-remote插件链接

image

winscp 传递文件

image