Bad configuration option localCommand
command-line: line 0: Bad configuration option: PermitLocalCommand2011-12-08 14:04:54
废话少说,问题描述与解决
今天在一server上传输文件时,遇到scp error
[root@server01 ~]# scp aa.txt root@192.168.0.1:/home/software/
command-line: line 0: Bad configuration option: PermitLocalCommand
lost connection
刚发现此问题时,还以为是sshd服务问题,将sshd重启后,问题依旧,查了些资料,说是sshd的配置文件问题,从其它server上拷贝文件,重启sshd服务,问题依旧,纠结。。。
之后将openssh的clients包重安装下,报如下错误:
[root@server228 software]# rpm -ivh openssh-clients-4.3p2-29.el5.x86_64.rpm
Preparing... ########################################### [100%]
1:openssh-clients ########################################### [100%]
error: unpacking of archive failed on file /usr/bin/ssh: cpio: rename failed - 不允许的操作
由此可见是/usr/bin/ssh出现异常
此时,查看/usr/bin/ssh的详细信息,当看到权限和属性时,发现
[root@server01 bin]# lsattr ssh
-u--ia------- ssh
此时看到这个属性,心中就有疑问了,于是找了其他server上的ssh程序权限和属性看了一下,。
[root@server46 ~]# lsattr /usr/bin/ssh
------------- /usr/bin/ssh
于是将01server上的ssh属性将uia去掉,命令:
chattr -uia /usr/bin/ssh
再重启sshd服务,问题即可解决!
Bad configuration option localCommand的更多相关文章
- PECL: configuration option "php_ini" is not set to php.ini location
message similar to: configuration option "php_ini" is not set to php.ini locationYou shoul ...
- ssh: Bad configuration option: usedns
某天突然听到同事说服务器上git用不了了,上去一看,确实用不了了,git pull报出了如下错误: $ git pull /etc/: Bad configuration option: usedns ...
- clr enabled Server Configuration Option
在SQL Server中启用CLR,可以执行下面SQL语句: EXEC sp_configure 'clr enabled'; '; RECONFIGURE; Source Code
- Elasticsearch Configuration 中文版
##################### Elasticsearch Configuration Example ##################### # This file contains ...
- P6 EPPM Installation and Configuration Guide 16 R1 April 2016
P6 EPPM Installation and Configuration Guide 16 R1 April 2016 Contents About Installing and ...
- P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1
P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1 May ...
- Laravel Configuration
Introduction All of the configuration files for the Laravel framework are stored in the app/config d ...
- [转] Spring - Java Based Configuration
PS: Spring boot注解,Configuration是生成一个config对象,@Bean指定对应的函数返回的是Bean对象,相当于XML定义,ConfigurationProperties ...
- odoo view field option, action flage 参数
options JSON object specifying configuration option for the field's widget (including default widget ...
随机推荐
- JS学习笔记 -- 定时器,提示框的应用
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- [GeekBand]C++高级编程技术(2)
本篇笔记主要分为两个主要部分,第一部分关于对象模型,第二部分是关于new和delete的更加深入的学习. 一.对象模型 关于vptr(虚指针)和vtbl(虚函数表) 只要用到了虚函数,对象中就会多一个 ...
- SQL2008、SQL2013 执行Transact-SQL 语句或者批处理时发生了异常。错误5120
附加数据库的时候遇到问题,问题描述如下: 附加数据库 对于 服务器"服务器名"失败.(Microsoft.SqlServer.Smo) 执行Transact-SQL 语句或者批处理 ...
- linux命令之grep用法介绍
Linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来.grep全称是Global Regular Expression Print,表示全局正则表达 ...
- zedboard启动过程分析
1.经过几天的努力看懂了zedboard的部分启动过程 陆书与何宾老师的书上都说到了BootRom , 这个是被称为第0阶段启动引导,这阶段的代码在上电或者热复位时执行,启动代码不可更改,这是比我们所 ...
- nginx配置(解释)
- WIN10主动推升级,有点意思
不论正与盗,皆推升级,是否一样可用?
- MotionEvent中getX()和getRawX()的区别
http://blog.csdn.net/ztp800201/article/details/17218067 public class Res extends Activity implements ...
- sail.js学习 - 一些问题
问题: 一.数据填充: 在开发环境中,难免要填充一些基础数据用于测试用.现有两种方法 1.在bootstrap.js或者其他启动文件中创建一些数据 2.https://github.com/frost ...
- mysql在windows下支持表名大小写,lower_case_table_names
windows下mysql默认是不支表名大小写的,也就是表名大小写不敏感.用phpmyadmin创建的驼峰式表名,全部被强制成小写.mysql表名大小写敏感的参数: lower_case_table_ ...