2016-08-24 22 views
1
scp -Cpv -i /home/jamie/Downloads/jamie1.pem /srv/http/wordpress/wp-  content/themes/dt-the7 [email protected]:/var/www/html/wp-content/themes/ 

[...]试图scp到一个EC2实例,只声明sftp?

debug1: Entering interactive session. 
debug1: pledge: network 
debug1: Sending command: scp -v -p -t /var/www/html/wp-content/themes/ 
This service allows sftp connections only. 

谁能告诉我怎么也允许SSH/SCP连接?

感谢

回答

2

您需要修改服务器上sshd_config并重新启动sshd守护进程。配置可能会包含类似

ForceCommand internal-sftp 

,如果你会评论说出来,你应该能够得到sshscp访问。

+0

正是这样:)刚回来回答我自己的问题,但无论如何感谢! – jamie

相关问题