기존의 사용하던 서버 및 단말의 정보를 변경 후 아래와 같은 문제 발생 시

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# pssh -h dept.hosts -i ls
[1] 14:06:49 [FAILURE] root@192.168.0.26 Exited with error code 255
Stderr: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:qo/WOgVXbxSOZIivYXQJ4ZcxmZ88lqgRYwivbObzHYc.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:4
ECDSA host key for 192.168.0.26 has changed and you have requested strict checking.
Host key verification failed.
 
cs



다음의 명령어로 초기화

1
2
3
4
5
# ssh-keygen -R 192.168.0.26
# Host 192.168.0.26 found: line 3
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
 
cs



확인

1
2
3
4
[3] 14:12:01 [SUCCESS] root@192.168.0.26
anaconda-ks.cfg
initial-setup-ks.cfg
 
cs



'Tools > PSSH' 카테고리의 다른 글

CentOS PSSH 설치  (0) 2018.06.01


1.

1
2
3
4
5
6
7
8
9
10
11
12
# wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/parallel-ssh/pssh-2.3.1.tar.gz
--2018-06-01 11:39:06--  https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/parallel-ssh/pssh-2.3.1.tar.gz
Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.200.176, 2404:6800:4004:816::2010
Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.200.176|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23427 (23K) [application/octet-stream]
Saving to: ‘pssh-2.3.1.tar.gz’
 
100%[===========================================================================>] 23,427      --.-K/s   in 0.04s
 
2018-06-01 11:39:06 (539 KB/s) - ‘pssh-2.3.1.tar.gz’ saved [23427/23427]
 
cs



2.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# tar -xvzf ./pssh-2.3.1.tar.gz
pssh-2.3.1/
pssh-2.3.1/setup.py
pssh-2.3.1/man/
pssh-2.3.1/man/man1/
pssh-2.3.1/man/man1/pslurp.1
pssh-2.3.1/man/man1/pssh.1
pssh-2.3.1/man/man1/pscp.1
pssh-2.3.1/man/man1/prsync.1
pssh-2.3.1/man/man1/pnuke.1
pssh-2.3.1/INSTALL
pssh-2.3.1/ChangeLog
pssh-2.3.1/bin/
pssh-2.3.1/bin/pscp
pssh-2.3.1/bin/prsync
pssh-2.3.1/bin/pnuke
pssh-2.3.1/bin/pssh-askpass
pssh-2.3.1/bin/pssh
pssh-2.3.1/bin/pslurp
pssh-2.3.1/COPYING
pssh-2.3.1/AUTHORS
pssh-2.3.1/psshlib/
pssh-2.3.1/psshlib/psshutil.py
pssh-2.3.1/psshlib/askpass_client.py
pssh-2.3.1/psshlib/manager.py
pssh-2.3.1/psshlib/version.py
pssh-2.3.1/psshlib/__init__.py
pssh-2.3.1/psshlib/color.py
pssh-2.3.1/psshlib/task.py
pssh-2.3.1/psshlib/cli.py
pssh-2.3.1/psshlib/askpass_server.py
pssh-2.3.1/PKG-INFO
pssh-2.3.1/test/
pssh-2.3.1/test/test.py
 
cs



3.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/psshlib
copying psshlib/psshutil.py -> build/lib/psshlib
copying psshlib/askpass_client.py -> build/lib/psshlib
copying psshlib/manager.py -> build/lib/psshlib
copying psshlib/version.py -> build/lib/psshlib
copying psshlib/__init__.py -> build/lib/psshlib
copying psshlib/color.py -> build/lib/psshlib
copying psshlib/task.py -> build/lib/psshlib
copying psshlib/cli.py -> build/lib/psshlib
copying psshlib/askpass_server.py -> build/lib/psshlib
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/pssh -> build/scripts-2.7
copying and adjusting bin/pnuke -> build/scripts-2.7
copying and adjusting bin/prsync -> build/scripts-2.7
copying and adjusting bin/pslurp -> build/scripts-2.7
copying and adjusting bin/pscp -> build/scripts-2.7
copying and adjusting bin/pssh-askpass -> build/scripts-2.7
changing mode of build/scripts-2.7/pssh from 644 to 755
changing mode of build/scripts-2.7/pnuke from 644 to 755
changing mode of build/scripts-2.7/prsync from 644 to 755
changing mode of build/scripts-2.7/pslurp from 644 to 755
changing mode of build/scripts-2.7/pscp from 644 to 755
changing mode of build/scripts-2.7/pssh-askpass from 644 to 755
running install_lib
creating /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/psshutil.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/askpass_client.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/manager.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/version.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/__init__.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/color.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/task.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/cli.py -> /usr/lib/python2.7/site-packages/psshlib
copying build/lib/psshlib/askpass_server.py -> /usr/lib/python2.7/site-packages/psshlib
byte-compiling /usr/lib/python2.7/site-packages/psshlib/psshutil.py to psshutil.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/askpass_client.py to askpass_client.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/manager.py to manager.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/version.py to version.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/color.py to color.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/task.py to task.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/cli.py to cli.pyc
byte-compiling /usr/lib/python2.7/site-packages/psshlib/askpass_server.py to askpass_server.pyc
running install_scripts
copying build/scripts-2.7/pssh -> /usr/bin
copying build/scripts-2.7/pnuke -> /usr/bin
copying build/scripts-2.7/prsync -> /usr/bin
copying build/scripts-2.7/pslurp -> /usr/bin
copying build/scripts-2.7/pscp -> /usr/bin
copying build/scripts-2.7/pssh-askpass -> /usr/bin
changing mode of /usr/bin/pssh to 755
changing mode of /usr/bin/pnuke to 755
changing mode of /usr/bin/prsync to 755
changing mode of /usr/bin/pslurp to 755
changing mode of /usr/bin/pscp to 755
changing mode of /usr/bin/pssh-askpass to 755
running install_data
creating /usr/man
creating /usr/man/man1
copying man/man1/pssh.1 -> /usr/man/man1
copying man/man1/pscp.1 -> /usr/man/man1
copying man/man1/prsync.1 -> /usr/man/man1
copying man/man1/pslurp.1 -> /usr/man/man1
copying man/man1/pnuke.1 -> /usr/man/man1
running install_egg_info
Writing /usr/lib/python2.7/site-packages/pssh-2.3.1-py2.7.egg-info
 
cs



4.

1
2
# vi ./dept.hosts
 
cs



5.

1
2
3
4
5
192.168.0.24 root
192.168.0.25 root
192.168.0.27 root
192.168.0.26 root
 
cs


6.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# pssh -h dept.hosts -i ls
[1] 11:49:36 [SUCCESS] root@192.168.0.24
anaconda-ks.cfg
initial-setup-ks.cfg
[2] 11:49:36 [SUCCESS] root@192.168.0.27
anaconda-ks.cfg
initial-setup-ks.cfg
[3] 11:49:36 [SUCCESS] root@192.168.0.25
anaconda-ks.cfg
initial-setup-ks.cfg
[4] 11:49:36 [SUCCESS] root@192.168.0.26
anaconda-ks.cfg
initial-setup-ks.cfg
 
cs



'Tools > PSSH' 카테고리의 다른 글

SSH 접속 시 SHA 공유키 충돌 문제 발생 시  (0) 2018.06.01

+ Recent posts