是否可以从 SSH 的 known_hosts 文件中删除特定的主机密钥?
我通常最终会删除整个known_hosts文件,我这样做没有问题,但出于好奇,是否可以只删除一个条目?
我打开了known_hosts文件,但我很难理解它的内容。
以下是我遇到的消息,这使我提出了这个问题:
Add correct host key in /home/wissen16/.ssh/known_hosts to get rid of this message.
Offending key in /home/wissen16/.ssh/known_hosts:1
RSA host key for foo.com has changed and you have requested strict checking.
Host key verification failed.
Run Code Online (Sandbox Code Playgroud) 我经常需要检查安装了哪些软件包,我使用以下命令:
dpkg -l | grep foo
这给出了以下输出
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
ii foo <version> <description>
Run Code Online (Sandbox Code Playgroud)
ii意思?谢谢。
上面的错误是什么意思?什么是安装候选?
我试图做
sudo apt-get install munin-memcached
Run Code Online (Sandbox Code Playgroud)
我收到这条消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package munin-memcached is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package munin-memcached has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索了这个问题,有人说要做一个,apt-get upgrade但它仍然没有解决我的问题。
我希望在每个提示上添加一个新行。而不是光标在行上显示为
name@machine:~$ _,
我希望它在下一行,例如:
name@machine:~$
_
Run Code Online (Sandbox Code Playgroud)
谢谢。
是否可以在 OSD 上获得关闭按钮?
它会停留很长时间,有时我的电脑上有同事在,我不想让他们看到谁在线,或者我在听什么歌。不,我不能禁用它。
ssh-add <key>每次需要通过 ssh 连接到网络服务器时,我都需要运行。有没有办法永久添加 ID,这样我就不必在每次登录时不断添加身份?
编辑:关键是我从云服务下载的 pem 文件。
这是错误日志的快照:
06:16:29,933 ERROR EmailRMManager$:45 - Exception In get Message
com.rabbitmq.client.AlreadyClosedException: clean connection shutdown; reason: Attempt to use closed channel
at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:195)
at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:222)
at com.rabbitmq.client.impl.AMQChannel.rpc(AMQChannel.java:208)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:139)
at com.rabbitmq.client.impl.ChannelN.basicGet(ChannelN.java:645)
Run Code Online (Sandbox Code Playgroud)
我执行以下命令:
cat foo.log | grep ERROR 获得 OP 为:
06:16:29,933 ERROR EmailRMManager$:45 - Exception In get Message
我应该执行什么命令来获得输出
06:16:29,933 ERROR EmailRMManager$:45 - Exception In get Message
com.rabbitmq.client.AlreadyClosedException: clean connection shutdown; reason: Attempt to use closed channel
Run Code Online (Sandbox Code Playgroud)
即,还 grep 模式后的行吗?
当我使用 Kubuntu 9.10(我现在使用Ubuntu Meerkat)时,我需要标记我的 MP3 库,并尝试过 Kid3(这是手动标记)以下是我希望的功能:
如果一个应用程序不能做所有的事情,我愿意用 3 个,不介意接触更多的应用程序;)
我用过 picard 或 someting,我不太喜欢它。但不介意使用它,如果没有其他选择。
谢谢你的时间!
我希望cowsay在每个终端窗口中显示一条消息。我使用的命令是
fortune | cowsay
Run Code Online (Sandbox Code Playgroud)
有什么想法可以在我开始新的终端会话时让它出现吗?
这是输出 ls -l
ls -l
total 53484
drwxr-xr-x 3 root root 4096 2011-02-10 05:59 ~
-rw-r--r-- 1 root root 54313810 2011-02-13 05:09 jobs.jar
-rw-r--r-- 1 root root 384035 2011-02-15 05:33 jobsLog.out
Run Code Online (Sandbox Code Playgroud)
我不能这样做,rm -rf ~ 因为这会删除我的主目录。
我该怎么办?这对我来说不是问题,只是眼痛。
bash ×4
command-line ×2
scripts ×2
ssh ×2
apt ×1
dpkg ×1
fortune ×1
grep ×1
id3 ×1
mp3 ×1
notify-osd ×1
rm ×1
tag ×1
user-profile ×1