在PVM中添加从服务器要求输入密码 [英] Adding slave in PVM asks for password

查看:98
本文介绍了在PVM中添加从服务器要求输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在主机中添加从机.但是添加时会要求输入密码.我不明白.

I tried to add slave in master machine. But when it adds it ask for password. That I didn't understand.

Master = jhamb

奴隶 = naveen,raja,gaurav

Slave = naveen, raja, gaurav

请解决以下错误.寻找您的友善回应.

Please solve below error. Looking for your kind response.

控制台快照:-

当我尝试添加任何主机时,它会显示以下行

when I try to add any hosts it shows these lines

0successful
       HOST             DTID
       ANY NAME         NO SUCH HOST

vim/etc/hosts显示:-

# Do not remove the following line, or various programs
# that require network functionality will fail.

#127.0.0.1  localhost.localdomain localhost

10.40.54.180 gaurav.my.domain                      #node 1 slave
10.40.54.92 naveen.my.domain                       #node 2 slave
10.40.55.31 raja.my.domain                         #node 3 slave
10.40.55.113 localhost.localdomain                 #node 4 master


#::1            localhost6.localdomain6 localhost6

已编辑

我在这里写下有关我的工作,直到现在为止我所做的事情

I write here, about my work, what I do till now

  1. 下载pvm3 tar文件.
  2. 设置所有变量以运行PVM.
  3. 导出PVM_RSH =/ur/bin/ssh
  4. 建立主从之间的无密码连接.
  5. 在一台机器上运行简单的代码,它就可以工作.
  6. 当我尝试通过使用命令在主服务器上添加从属服务器时 add naveen.my.domain 和上面的图片说的一样.
  1. Download pvm3 tar file.
  2. Setup all the variables to run PVM.
  3. export PVM_RSH=/ur/bin/ssh
  4. make passwordless connection between master and slave.
  5. Run simple code on single machine, it works.
  6. When I tried to add slave on master, by using command add naveen.my.domain it says the same, as of above image.

我认为现在已经足够了.

I think now it is sufficient information.

编辑号2

当我运行ssh -v naveen@10.40.54.92时,它说,

......
.....
debug1: Authentications that can continue: publickey, password
debug1: Next Authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key:pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0:new [client-session]
debug1: Entering Interactive session.
debug1: Sending environment.
.......
.....

推荐答案

添加从属服务器时,PVM尝试在该计算机上启动pvmd.为此,它将尝试通过ssh(1)登录.因此,"user @ host password:"行来自ssh.

When you add a slave, PVM tries to start pvmd on that machine. To do that, it will try to login via ssh(1). So the line "user@host password:" are from ssh.

您可以自己尝试:

> ssh naveen.my.domain

本文介绍了如何允许ssh登录到另一台计算机而无需每次都输入密码而又不影响SSH的安全性:

This article explains what you can do to allow ssh login onto a different machine without giving it a password every time and without compromising the security of SSH: 3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id

编辑,这是上图的重要部分:

EDIT Here is the important part of the image above:

Verifying Local Path to "rsh"
Rsh found in /usr/bin/ssh - O.K.
Testing Rsh/Rhosts Access to Host ...

PVM可以使用rsh(1)ssh(1)进行远程登录. 不是每次都使用rsh(1).它不安全,脆弱且丑陋.

PVM can use rsh(1) and ssh(1) to login remotely. Don't every use rsh(1). It's unsecure, brittle and ugly.

输出表明PVM使用ssh.您可以通过在PVM询问密码时查看进程列表来验证这一点:您应该看到一个以PVM为父进程的ssh子进程.

The output suggests that PVM uses ssh. You can verify that by looking at the process list while PVM asks for the password: You should see a ssh child process with PVM as the parent.

因此由于某种原因,您的无密码SSH设置已损坏.

So for some reason, your password-less SSH setup is broken.

编辑2 并非易事:-)您需要了解的是,有一个软件可以为您记住密码.那就是"ssh代理".

EDIT 2 Security isn't easy :-) What you need to understand is that there is a software which remembers the password for you. That's the "ssh agent."

当SSH要求您提供密码时,可能有很多原因:

When SSH asks you for a password, then there can be many reasons:

  1. ssh代理未运行
  2. 您的密钥未加载到ssh代理中
  3. 在ssh代理中加载了错误的密钥
  4. 您使它起作用,并启动了一个新的终端/新进程,并且该新进程没有看到" ssh代理.

要检查这些:

  1. 确保在进程列表中看到运行用户ID 的ssh代理.
  2. 确保已加载正确的密钥(如有疑问,请再次添加)
  3. 确保ssh naveen正常工作.
  4. 在尝试ssh naveen
  5. 的同一控制台中尝试pvm
  1. Make sure you see a ssh agent running with your user ID in the process list.
  2. Make sure the correct key is loaded (add it again if in doubt)
  3. Make sure that ssh naveen works correctly.
  4. Try pvm in the same console where you tried ssh naveen

这篇关于在PVM中添加从服务器要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆