V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  andybest  ›  全部回复第 43 页 / 共 75 页
回复总数  1499
1 ... 39  40  41  42  43  44  45  46  47  48 ... 75  
2014-01-07 13:58:41 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 牛!!!!!启动了:

root@ssd:/# mkdir /var/run/sshd
mkdir: cannot create directory `/var/run/sshd': File exists
root@ssd:/#
root@ssd:/# chmod 0755 /var/run/sshd

root@ssd:/# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.3p1 Debian-3ubuntu7
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.



可以SSH连接了,在22端口,如何恢复SSH服务?
2014-01-07 13:53:37 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@lijinma 谢谢,奇怪的是syslog无法安装和启动:

root@ssd:/# sudo service rsyslog restart
rsyslog: unrecognized service
root@ssd:/#
root@ssd:/# service rsyslog restart
rsyslog: unrecognized service
root@ssd:/#
root@ssd:/# /etc/init.d/syslog restart
-bash: /etc/init.d/syslog: No such file or directory
root@ssd:/#
root@ssd:/# apt-get install syslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package syslog
root@ssd:/#
root@ssd:/# apt-get install syslogd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting sysklogd instead of syslogd
The following extra packages will be installed:
klogd sysklogd
The following NEW packages will be installed:
klogd sysklogd
0 upgraded, 2 newly installed, 0 to remove and 47 not upgraded.
Need to get 0B/116kB of archives.
After this operation, 369kB of additional disk space will be used.
Do you want to continue [Y/n]? y

Selecting previously deselected package sysklogd.
(Reading database ... 26840 files and directories currently installed.)
Unpacking sysklogd (from .../sysklogd_1.5-5ubuntu4_i386.deb) ...
Selecting previously deselected package klogd.
Unpacking klogd (from .../klogd_1.5-5ubuntu4_i386.deb) ...
Processing triggers for man-db ...
Setting up sysklogd (1.5-5ubuntu4) ...
* Starting system log daemon...
...done.

Setting up klogd (1.5-5ubuntu4) ...
* Starting kernel log daemon...




...fail!

root@ssd:/#
2014-01-07 13:34:44 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 检查了,是默认的:
LogLevel INFO
2014-01-07 13:23:11 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@lijinma 谢谢,是Ubuntu 10.04 server,没有这个文件:
root@ssd:/# cat /var/log/secure
cat: /var/log/secure: No such file or directory
2014-01-07 13:10:01 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 尝试过,结果是一样的

这是台 Ramnode VPS,但同样的问题也出现在其他VPS提供商的 OpenVZ 架构VPS上
我曾经发过多次Ticket请求协助解决该问题,但结果都是让我重装系统(拿unmanaged说事。。。)

我觉得你所的很对,应该看 /var/log/auth.log 记录来确定问题,但不知道为啥我这个没有记录 auth.log 。。。如果能恢复记录 auth.log 我觉得就可以确定问题了

再次感谢 :)
2014-01-07 12:44:49 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 而在重启前一般VPS都稳定运行好久了(100多天)
今天这个是两台配置,应用完全一样的VPS,一个重启后正常,一个重启后 SSH 无法启动。。。
非常怪异
2014-01-07 12:43:56 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 不存在

root@ssd:/# ls /etc/ssh/sshd_not_to_be_run
ls: cannot access /etc/ssh/sshd_not_to_be_run: No such file or directory

每次这个问题出现都是服务器重启,或者官方维护导致offline后,我再online后 SSH 就无法启动了
2014-01-07 12:04:08 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 谢谢

root@ssd:/# mkdir /var/run/sshd
root@ssd:/# chmod 0755 /var/run/sshd
root@ssd:/# /etc/init.d/ssh restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart ssh
ssh stop/pre-start, process 641
root@ssd:/#


执行完毕后检查 ps auxf 与 netstat -nl 还与之前完全一样,并且/var/run/sshd无任何内容:

root@ssd:/var/run/sshd# ls -l
total 0
root@ssd:/var/run/sshd#
2014-01-07 11:50:55 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 谢谢,没有这个文件夹:

root@ssd:/var/run# ls sshd
ls: cannot access sshd: No such file or directory

root@ssd:/var/run# ls ssh
ls: cannot access ssh: No such file or directory
2014-01-07 11:41:58 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 日志的确是去年的,我通常买了VPS后会关闭不必要的服务,,不知道是关了什么导致没有日志记录(安装什么可以恢复日志记录?)


Server listening on 0.0.0.0 port 22.
后但没有任何SSH进程(可以在ps auxf中看到,没有sshd)

root@ssd:/# ps aux|grep ssh
root 584 0.0 0.4 1820 568 pts/2 S+ 11:40 0:00 grep --color=auto ssh
root@ssd:/#
2014-01-07 11:40:08 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@felix021

root@ssd:/# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.3p1 Debian-3ubuntu7
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
Missing privilege separation directory: /var/run/sshd
root@ssd:/#

运行后SSH仍然是未启动状态:
root@ssd:/# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 2875821005 @/com/ubuntu/upstart
root@ssd:/#
root@ssd:/# ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 1.0 2504 1360 ? Ss 09:50 0:00 init
root 2 0.0 0.0 0 0 ? S 09:50 0:00 [kthreadd/1980]
root 3 0.0 0.0 0 0 ? S 09:50 0:00 \_ [khelper/1980]
root 270 0.0 0.6 2336 888 ? Ss 09:50 0:00 cron
root 477 0.0 0.5 27496 752 ? Ss 11:05 0:00 vzctl: pts/0
root 478 0.0 1.2 3004 1648 pts/0 Ss+ 11:05 0:00 \_ -bash
root 548 0.0 0.5 27496 756 ? Ss 11:31 0:00 vzctl: pts/1
root 549 0.0 1.2 3004 1628 pts/1 Ss+ 11:31 0:00 \_ -bash
root 568 0.0 0.5 27496 756 ? Ss 11:38 0:00 vzctl: pts/2
root 569 0.0 1.2 3004 1640 pts/2 Ss 11:38 0:00 \_ -bash
root 582 0.0 0.6 2392 856 pts/2 R+ 11:39 0:00 \_ ps auxf
2014-01-07 11:11:34 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@felix021 谢谢,sshd -d 怎么运行应该?这样正确吗?

root@ssd:~# /etc/init.d/ssh -d
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh -d

The script you are attempting to invoke has been converted to an Upstart
job, but -d is not supported for Upstart jobs.
root@ssd:~#
2014-01-07 11:09:31 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy 非常感谢,但在 /var/log/auth.log 似乎没记录到启动信息呢,是不是日志进程没有开启?
2014-01-07 11:07:46 +08:00
回复了 andybest 创建的主题 问与答 [500XRP悬赏] OpenVZ ubuntu10.04 中 SSH 无法启动的问题
@juicy

Starting PowerConsole v1.3 <> (c)2012 soluslabs ltd.
please wait...
successfully logged in.
entered into CT 1980
root@ssd:/# /etc/init.d/ssh restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart ssh
ssh stop/pre-start, process 502
root@ssd:/#
root@ssd:/# less /var/log/auth.log|grep ssh
Jan 10 14:10:50 atlsvz7 sshd[30]: Received signal 15; terminating.
Jan 10 14:10:50 atlsvz7 sshd[144]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:50 atlsvz7 sshd[144]: Server listening on :: port 22.
Jan 10 14:10:50 atlsvz7 sshd[144]: Received signal 15; terminating.
Jan 10 14:10:50 atlsvz7 sshd[251]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:50 atlsvz7 sshd[251]: Server listening on :: port 22.
Jan 10 14:10:50 atlsvz7 sshd[251]: Received signal 15; terminating.
Jan 10 14:10:50 atlsvz7 sshd[277]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:50 atlsvz7 sshd[277]: Server listening on :: port 22.
Jan 10 14:10:50 atlsvz7 sshd[277]: Received signal 15; terminating.
Jan 10 14:10:50 atlsvz7 sshd[304]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:50 atlsvz7 sshd[304]: Server listening on :: port 22.
Jan 10 14:10:50 atlsvz7 sshd[304]: Received signal 15; terminating.
Jan 10 14:10:52 ssd sshd[222]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:52 ssd sshd[222]: Server listening on :: port 22.
Jan 10 14:10:52 ssd sshd[222]: Received signal 15; terminating.
Jan 10 14:10:52 ssd sshd[292]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:52 ssd sshd[292]: Server listening on :: port 22.
Jan 10 14:10:52 ssd sshd[292]: Received signal 15; terminating.
Jan 10 14:10:52 ssd sshd[340]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:52 ssd sshd[340]: Server listening on :: port 22.
....
Jan 10 14:10:57 ssd sshd[2965]: Received signal 15; terminating.
Jan 10 14:10:57 ssd sshd[2991]: Server listening on 0.0.0.0 port 22.
Jan 10 14:10:57 ssd sshd[2991]: Server listening on :: port 22.
Jan 10 14:12:53 ssd sshd[3144]: Accepted password for root from 222.125.162.152 port 62849 ssh2
Jan 10 14:12:53 ssd sshd[3144]: pam_env(sshd:setcred): Unable to open env file: /etc/default/locale: No such file or directory
Jan 10 14:12:53 ssd sshd[3144]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jan 10 14:12:54 ssd sshd[3155]: error: lastlog_get_entry: Error reading from /var/log/lastlog: Expecting 292, got 1
Jan 10 14:12:54 ssd sshd[3155]: pam_env(sshd:setcred): Unable to open env file: /etc/default/locale: No such file or directory
root@ssd:/#
root@ssd:/# date
Tue Jan 7 11:06:07 CST 2014
root@ssd:/#
root@ssd:/#
@momou plus菜单 在哪里? 我实在是没有找到。。。谢谢啊。
@momou 现在手机上没有每次自动备份完的提示了
但是WEB上,在www.google.com首页,顶部右侧的小铃铛图标,每次备份完仍然会发送一个通知。。。
这个能关闭吗?谢谢!
可以考虑国产电视
40寸以下玩video game实在很不爽
@momou 真是太感谢了!我找了半天都竟然没发现那个账户是可以点的。。。感谢! :))
2014-01-02 01:48:24 +08:00
回复了 ipconfiger 创建的主题 Android 天猫魔盒逊暴了,卡巴斯基成这样的渣操作简直无力吐槽
昨天晚上我用,比这卡的更严重,关键还没有重启选项只能拔电源
2013-12-31 17:44:43 +08:00
回复了 hq5261984 创建的主题 Ripple 悲催的2013年末。。。。。。钱包被偷了。
@paolongtao 钱包无法改密码吧?所以楼主应该是还可以登录进自己的钱包的
1 ... 39  40  41  42  43  44  45  46  47  48 ... 75  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1185 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 18:15 · PVG 02:15 · LAX 10:15 · JFK 13:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.