小编use*_*637的帖子

公钥认证 - 重启本地机器后 SSH 要求输入密码?

我使用ssh-keygen. 我输入了密码。然后我习惯ssh-id-copy将公钥放在远程机器上。

当我 ssh 进入远程机器时,每次在本地机器上重新启动后,我都会被要求输入密码。这是预期的行为吗?本地机器使用gentoo,远程机器使用ubuntu。

我使用的参考资料:https : //help.ubuntu.com/10.04/serverguide/C/openssh-server.html

ssh public-key ssh-keys

1
推荐指数
1
解决办法
493
查看次数

应用木偶模块路径时出错?

这是我的一个片段 /etc/puppet/puppet.conf

[main]
modulepath = /etc/puppet
Run Code Online (Sandbox Code Playgroud)

当我尝试在init.pp文件中使用此路径时出现错误

etc/puppet/modules/fangs/manifests# puppet apply init.pp
err: /Stage[main]//File[/tmp/test]: Could not evaluate: Could not retrieve information
from environment production source(s) puppet:///modules/fangs/files/sample.txt at /etc/puppet/modules/fangs/manifests/init.pp:7
notice: Finished catalog run in 0.05 seconds
Run Code Online (Sandbox Code Playgroud)

这是我的init.pp文件的内容

file { '/tmp/test':
    ensure => file,
    mode => '0777',
    source => "puppet:///modules/fangs/files/sample.txt",
#    source => "/etc/puppet/modules/fangs/files/sample.txt",
}
Run Code Online (Sandbox Code Playgroud)

当我使用source => "/etc/puppet/modules/fangs/files/sample.txt",带有完整文件路径而不是puppet://模块路径的注释源时,它可以正确运行。

如何修复我的模块路径以确保它正常工作?

puppet

1
推荐指数
1
解决办法
662
查看次数

可以根据登录用户全局更改 chmod 权限吗?

这个问的有点不好意思,不过我只是用openssh搭建了一个ubuntu服务器。

如果该用户不是所有者或组的一部分,是否可以创建对 chmod **7 文件具有只读访问权限的用户?换句话说,当您以该用户身份登录时,具有 **7 权限的文件将显示为 **4,而当您以其他用户身份登录时,权限将显示为 **7。

ubuntu bash chmod

0
推荐指数
1
解决办法
318
查看次数

0
推荐指数
1
解决办法
208
查看次数

如何判断哪些守护进程正在运行?

我正在运行 centos 5.8 并试图确定正在运行的守护进程。

我以 root 用户身份登录,但是当我输入service --status-all或chkconfig --list得到bash: service: command not found.

如何确定正在运行的守护进程?

linux centos

-2
推荐指数
1
解决办法
116
查看次数

标签 统计

amazon-ec2 ×1

amazon-elb ×1

bash ×1

centos ×1

chmod ×1

linux ×1

public-key ×1

puppet ×1

ssh ×1

ssh-keys ×1

ubuntu ×1