You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于SSH命令带@无用户名及Gerrit配置验证的疑问

Fixing the Gerrit SSH Command & Understanding Your Public Key Comment

Let's tackle both of your issues step by step:

1. The Broken SSH Command in the Guide

You’re totally right—there’s a clear typo in that guide step. The command ssh @gerrit.ovirt.org is invalid SSH syntax:

  • If you need to specify your Gerrit username, the correct format is ssh <your-gerrit-username>@gerrit.ovirt.org (swap <your-gerrit-username> for the account name you use on the oVirt Gerrit instance).
  • If you want SSH to use your current system username (which is root in your case), you can skip the username entirely and run ssh gerrit.ovirt.org.

The error message you got is SSH’s way of telling you the command doesn’t follow its required structure—you can’t have an @ without a username preceding it.

2. The root@ Comment in Your Public Key

The string at the end of your id_rsa.pub file (71MgP8w== root@dub-svrfarm27) is just a comment field for the SSH public key. By default, SSH generates this comment using your current system username and hostname when you create the key pair.

This comment doesn’t impact SSH authentication at all—it’s purely for your own reference to remember which machine/user the key belongs to. When adding this public key to Gerrit, you only need to copy the first two parts (the key type like ssh-rsa and the long base64-encoded key data) into the Gerrit interface. That said, it’s a good idea to update the comment to something more meaningful (like your Gerrit username) to keep things organized—you can edit the comment directly in the id_rsa.pub file if you want.

内容的提问来源于stack exchange,提问作者Grif Pete

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 07:46:16