V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  BIAOXYZ  ›  全部回复第 8 页 / 共 9 页
回复总数  170
1  2  3  4  5  6  7  8  9  
2019-05-20 22:46:47 +08:00
回复了 zpoint 创建的主题 Python cpython 底层实现笔记
挺用心的,支持了~
2019-05-16 15:35:08 +08:00
回复了 diggerdu 创建的主题 程序员 华为发布了 GaussDB, V 站的朋友们怎么看
@forestyuan 这个是高斯的 AP 产品,基于 pgxc。pgxc 是 pg 的一个开源分布式版本。
2019-05-13 13:20:20 +08:00
回复了 chinesestudio 创建的主题 程序员 阿里云 你是在逗我么?
@skyeycirno [如何看待 ithome 从阿里云转至百度云? - 知乎]( https://www.zhihu.com/question/51999442)。无任何利益相关。
@knktc 查看了下控制机上的 known_hosts 后,彻底明白了。是因为我用 hostname 建立互信时,对控制机用的内部的 10 开头的 IP,对其他两台被控机,用的是 9 开头的外部 IP。而我的 hostpssh 文件里都是 9 开头的 IP。所以后面在控制机上用 IP 的方式连接控制机一次,写入 known_hosts,就可以了。
@knktc 尝试直接 ssh [email protected] ,发现竟然提示认证问题(类似首次连接时候的认证)。同意之后,再次执行,发现解决了~所以看是还是互信的问题?但是我之前互信确实建好了啊。感谢~总之是解决了。过程如下:

```
[root@druidcluster1 ~]# ssh [email protected] date
The authenticity of host '9.116.2.59 (9.116.2.59)' can't be established.
ECDSA key fingerprint is SHA256:V9315377iDHed0ETyHal4dBTUUJ4WopShNjXIW/5giw.
ECDSA key fingerprint is MD5:aa:cc:8d:c5:a4:c1:3c:9b:78:f6:75:e2:48:b5:81:e7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '9.116.2.59' (ECDSA) to the list of known hosts.
Sun May 12 07:13:27 CDT 2019
[root@druidcluster1 ~]#
[root@druidcluster1 ~]# ssh [email protected] date
Sun May 12 07:13:33 CDT 2019
[root@druidcluster1 ~]#
[root@druidcluster1 ~]# pssh -h ~/generalsoftware/hostpssh -P date
9.116.2.59: Sun May 12 07:13:45 CDT 2019
[1] 07:13:45 [SUCCESS] [email protected]
9.116.2.254: Sun May 12 07:13:47 CDT 2019
[2] 07:13:47 [SUCCESS] [email protected]
9.116.2.70: Sun May 12 07:13:47 CDT 2019
[3] 07:13:47 [SUCCESS] [email protected]
```
@xiaket

看了一下前面说到的 /var/log/audit/audit.log 。当我再次执行一下 pssh 显示 date 命令,依然是控制机失败,两台被控机成功的结果。不过这个文件末尾多了一些内容,其中有一条是失败的信息:
```
type=USER_LOGIN msg=audit(1557657314.113:2468): pid=939 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op= login acct="(unknown)" exe="/usr/sbin/sshd" hostname=? addr=9.116.2.59 terminal=ssh res=failed'
```
好像是登陆的问题?
@xiaket 看了下这个位置没有这个日志文件。不过我看到 audit 那个目录下有个 audit.log 文件, 打开看看是一堆日志,正在找看有没有相关的信息。

```
[root@druidcluster1 log]# pwd
/var/log
[root@druidcluster1 log]# ll
total 644
drwxr-xr-x. 2 root root 4096 Apr 1 15:02 anaconda
drwx------. 2 root root 4096 Oct 30 2018 audit
-rw-------. 1 root root 0 May 12 03:15 boot.log
-rw-------. 1 root root 17712 May 12 03:15 boot.log-20190512
-rw-------. 1 root utmp 384 May 11 10:20 btmp
drwxr-xr-x. 2 chrony chrony 4096 Apr 12 2018 chrony
-rw-------. 1 root root 904 May 12 05:01 cron
```
@yangg thx,ansible 确实没问题。我就是好奇心起了想着试试 pssh 吧,结果就碰到这个问题了。不过这项目基本已经很久没啥动静了,还是用回 ansible 吧。。。
@omph 试了一下,还是不行。过程如下:

在控制机上新建一个用户 test,并配置好和其他两台机器的互信。
```
[test@druidcluster1 .ssh]$ ssh test@druidcluster1 date
Sun May 12 05:14:02 CDT 2019
[test@druidcluster1 .ssh]$ ssh root@druidcluster1 date
Sun May 12 05:14:08 CDT 2019
[test@druidcluster1 .ssh]$ ssh root@druidcluster2 date
Sun May 12 05:14:16 CDT 2019
[test@druidcluster1 .ssh]$ ssh root@druidcluster4 date
Sun May 12 05:14:22 CDT 2019
```

修改 hostpssh 文件如下:
```
[test@druidcluster1 .ssh]$ cat ~/hostpssh
[email protected]
[email protected]
[email protected]
```

执行命令,依然是控制机不成功,但是被控机器成功。
```
[test@druidcluster1 .ssh]$ pssh -h ~/hostpssh -P date
[1] 05:14:52 [FAILURE] [email protected] Exited with error code 255
9.116.2.70: Sun May 12 05:14:54 CDT 2019
[2] 05:14:54 [SUCCESS] [email protected]
9.116.2.254: Sun May 12 05:14:54 CDT 2019
[3] 05:14:54 [SUCCESS] [email protected]
```
2019-05-10 14:37:35 +08:00
回复了 sadhen 创建的主题 程序员 GNU TeXmacs 的 StackExchange 子站筹备
已 follow,然后好像每个人只有 5 次 upvote 的机会?我点了 5 次就提示"you have already 5 questions for this proposal."
2019-05-10 14:30:58 +08:00
回复了 sadhen 创建的主题 程序员 GNU TeXmacs 招募开发者
从本科毕业时候知道 latex (但是本科毕设还是用的 word )开始,用了好多年 latex 了( TeXmacs 就是之前下载过简单试了下,没深入用过)。不知道加入后能做点什么?时间上会有很紧的 deadline 吗?跟题主面临的问题一样,可能只有周末有时间。
2019-05-07 21:50:43 +08:00
回复了 guiqiqi 创建的主题 程序员 用无线渗透的方法让室友按时休息
LZ 可以,坚持这种钻研精神,必成大器。
2019-05-06 16:34:58 +08:00
回复了 kyf0722 创建的主题 PostgreSQL postgresql 流复制的只读数据库为什么还有有文件锁出现
主库上 select * from pg_stat_replication; 看一下从库是同步还是异步?
2019-05-06 16:31:26 +08:00
回复了 snappyone 创建的主题 程序员 做一个基础很扎实的程序员是一种什么感受啊
@taogen 密码学部分太多了,贵精不贵多。体系结构那里我觉得不能少了 CSAPP 吧。
2019-05-01 01:10:58 +08:00
回复了 BIAOXYZ 创建的主题 程序员 请问有人知道 Github 的 DMCA counter notice 一般要处理多久吗?
@NG6 是的,我这次就是血泪的教训。后面还是以本地为主吧,免得再出这事烦心。
2019-04-30 14:55:53 +08:00
回复了 BIAOXYZ 创建的主题 程序员 请问有人知道 Github 的 DMCA counter notice 一般要处理多久吗?
@ZavierXu 存了,但是一般只是有大量编辑的时候会同步一下,然后本地编辑。所以 github 那个才是最新,因为本地编辑完会立刻 push。
1  2  3  4  5  6  7  8  9  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1280 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 17:46 · PVG 01:46 · LAX 10:46 · JFK 13:46
Developed with CodeLauncher
♥ Do have faith in what you're doing.