go ethereum-geth-puppeth-ethstat远程服务器:docker:未找到命令
我正在尝试使用Puppeth(as)建立一个专用以太坊测试网络。我在MacBookPro(macOS Sierra)上运行它 当我尝试设置ethstat网络组件时,我得到一个错误的docker配置:bash:docker:command not found“错误。我有docker正在运行,我可以在终端中很好地使用它,例如docker ps 以下是我采取的步骤:go ethereum-geth-puppeth-ethstat远程服务器:docker:未找到命令,ethereum,go-ethereum,geth,Ethereum,Go Ethereum,Geth,我正在尝试使用Puppeth(as)建立一个专用以太坊测试网络。我在MacBookPro(macOS Sierra)上运行它 当我尝试设置ethstat网络组件时,我得到一个错误的docker配置:bash:docker:command not found“错误。我有docker正在运行,我可以在终端中很好地使用它,例如docker ps 以下是我采取的步骤: What would you like to do? (default = stats) 1. Show network stats
What would you like to do? (default = stats)
1. Show network stats
2. Manage existing genesis
3. Track new remote server
4. Deploy network components
> 4
What would you like to deploy? (recommended order)
1. Ethstats - Network monitoring tool
2. Bootnode - Entry point of the network
3. Sealer - Full node minting new blocks
4. Wallet - Browser wallet for quick sends (todo)
5. Faucet - Crypto faucet to give away funds
6. Dashboard - Website listing above web-services
> 1
Which server do you want to interact with?
1. Connect another server
> 1
Please enter remote server's address:
> localhost
DEBUG[11-15|22:46:49] Attempting to establish SSH connection server=localhost
WARN [11-15|22:46:49] Bad SSH key, falling back to passwords path=/Users/xxx/.ssh/id_rsa err="ssh: cannot decode encrypted private keys"
The authenticity of host 'localhost:22 ([::1]:22)' can't be established.
SSH key fingerprint is xxx [MD5]
Are you sure you want to continue connecting (yes/no)? yes
What's the login password for xxx at localhost:22? (won't be echoed)
>
DEBUG[11-15|22:47:11] Verifying if docker is available server=localhost
ERROR[11-15|22:47:11] Server not ready for puppeth err="docker configured incorrectly: bash: docker: command not found\n"
以下是我的问题:
我想我找到了这个问题的根本原因。SSH守护程序使用默认路径编译。如果使用特定命令(而不是shell)对机器执行ssh
ssh
,则会得到默认路径。这不包括/usr/local/bin
,例如,docker
住在我的案例中
我在这里找到了解决方案:
- 编辑
并确保它包含/etc/ssh/sshd\u config
(您需要使用许可环境yes
编辑此文件)sudo
- 创建一个具有所需路径的文件
,在我的示例中:~/.ssh/environment
路径=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
当您现在运行
ssh localhost env
时,您应该会看到一个路径
,该路径与您输入的内容相匹配。~/.ssh/environment
谢谢您的反馈,但我仍然有同样的问题。我已确保密钥正常工作,并且可以使用ssh连接到本地主机而无需密码。我还让docker compose工作。感谢您的代表。我会在Linux虚拟机上尝试同样的过程。也许这是一个与Mac相关的问题。