Articles of centos7

OS X的ssh:什么HostKeyAlgorithms和密码可用?

我正在努力在我们的环境中加强一些ssh。 我一直在遵循这些准则。 我不是一个encryption向导,但我通常了解我的OS X,Linux和UNIX基于服务的方式。 我很难理解为什么HostKeyAlgorithms和Cipher不能与我的OS X ssh一起工作到我的sshd服务器,按照上面提到的准则进行configuration。 我的第一个问题是如何获得这些在客户端(OS X)的支持。 我是否需要自己编译它? 下面的版本是最近的自制软件版本。 这似乎已经足够了。 下面的例子显示了我的客户端(OS X)configuration的一个片段〜/ .ssh / config什么是注释是上述准则的确切build议。 大多数人没有工作。 什么工作是没有评论的。 我的下一个问题是更多的SSH特定:这些HostKeyalgorithm和密码从哪里来的? 有没有一个命令我可以运行,看看有什么可用? 'ssh -Q [cipher | mac]不适用于这个客户端。 > ssh -V OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 # HostKeyAlgorithms [email protected],[email protected],ssh-ed25519,ssh-rsa # Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr # HostKeyAlgorithms ssh-rsa Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc

安装httpd后,YUM不能在CENTOS 7上运行

我刚刚在我的vmware上安装了CENTOS 7。 YUM更新后,一切正常工作,然后系统突然崩溃,并要求我登出。 在控制台尝试yum update升级,但它显示以下错误: 导入运行yum所需的某个Python模块时出现问题。 导致这个问题的错误是: /lib64/libxml2.so.2:File too short 请安装提供此模块的软件包或确认模块安装正确 上面的模块可能不匹配当前版本的Python,它是2.7.5(默认,2016年9月22日22:37:46)[GCC 4.8.5 2015(Red Hat 4.8.5-4)] 我遵循这个答案,但没有为我工作。 我只知道Linux操作系统的基本知识,所以请帮我解决这个问题。 我得到以下错误:

如何在targetcli中缩小Linux文件支持的存储大小

我正在使用targetcli来调整iSCSI目标的大小。 我创build了一个大的FILEIO后台,这是浪费资源。 是否有可能缩小文件大小而不会丢失数据?

尝试在远程虚拟机上设置Apache。 无法从我的机器访问

所以我在一个我没有物理访问的centos 7虚拟机上设置了httpd和iptables。 如果我运行curl http://localhost我得到了一堆html,但是如果我inputvm的IP地址(我用它ssh到),请求超时。 我在示例中保留了httpd.conf文件,但是我将/etc/sysconfig/iptables文件修改为: # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p […]

为什么systemd network.service抱怨“无法加载文件”/ etc / sysconfig / network-scripts / ifcfg-lo'“

我使用Kickstart安装了几个全新的CentOS 7系统。 当我重新启动networking时,我注意到奇怪的错误,说“ Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' “。 这个错误没有任何意义,因为ifcfg-lo文件存在,而且对我来说看起来很正常。 系统似乎正常工作,为什么networking服务抱怨? [root@host3 ~]# cat /etc/sysconfig/network-scripts/ifcfg-lo DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback [root@host3 ~]# [root@host3 ~]# systemctl restart network [root@host3 ~]# journalctl -xe […]

我可以从根文件夹删除anaconda-ks.cfg和openscap_data吗?

我刚才注意到,在每次执行新鲜的CentOS 7(7.2)安装之后,在根文件夹( /root )中创build了两个文件: openscap_data文件夹 anaconda-ks.cfg文件 据我所知openscap_scanner是一个漏洞扫描器,安装后运行并将其扫描到/root/openscap_data 。 我假设我可以删除文件夹,因为我没有使用openscap(不是故意的)。 而anaconda-ks.cfg是由GUI安装程序创build的“安装模板”。 由于它存储我的哈希根密码,我不知道是否应该保留这个文件。 有什么build议么?

configurationShibboleth SAML 2.0与ADFS 3.0与Fedration错误

我正在尝试configurationADFS 3.0和SAML 2.0。 目前,每当我重新启动shibd和httpd时,我得到这个错误。 2016-11-07 12:49:08 ERROR XMLTooling.ParserPool : error on line 1, column 2702, message: grammar not found for namespace 'http://docs.oasis-open.org/wsfed/federation/200706' 2016-11-07 12:49:08 ERROR XMLTooling.ParserPool : error on line 1, column 2702, message: attribute 'ServiceDisplayName' is not declared for element 'RoleDescriptor' 2016-11-07 12:49:08 ERROR XMLTooling.ParserPool : error on line 1, column 3893, message: no […]

docker – panic:standard_init_linux.go:175:exec用户进程导致“权限被拒绝”

我正在尝试使用docker容器overlay 。 我正在启动docker守护进程: docker daemon -s overlay docker run –rm hello-world命令失败: panic: standard_init_linux.go:175: exec user process caused "permission denied" [recovered] panic: standard_init_linux.go:175: exec user process caused "permission denied" goroutine 1 [running, locked to thread]: panic(0x7e9de0, 0xc82011f110) /usr/local/go/src/runtime/panic.go:481 +0x3e6 github.com/urfave/cli.HandleAction.func1(0xc8200f32e8) /go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x38e panic(0x7e9de0, 0xc82011f110) /usr/local/go/src/runtime/panic.go:443 +0x4e9 github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization.func1(0xc8200f2bf8, 0xc82001a0c8, 0xc8200f2d08) /go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:259 +0x136 github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization(0xc820059630, 0x7fb8ccc34728, 0xc82011f110) /go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:277 +0x5b1 […]

GCE实例上的多个内部IP

为了解决我们组织中的一个独特问题,我想创build一个或多个分配多个内部IP地址的实例。 然而,我还没有find关于添加额外的内部IP的UI,文档或API中的任何内容,并且从实例本身手动分配IP不会导致function地址。 任何人都可以指向正确的方向吗?

Centos 7上的httpd.service失败

由于apache错误,我正面临Centos 7 VPS的一个问题: 当我做: [root@vm01 ~]# apachectl restart Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. 有这个状态错误: [root@vm01 ~]# systemctl status httpd.service * httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri […]