X11 forwarding request failed on channel 0解决方案

纯粹转载记录一下解决方案。原文: http://ask.xmodulo.com/fix-broken-x11-forwarding-ssh.html

简述一下两种解决方案:

  • 修改/etc/ssh/sshd_config,增加X11UseLocalhost no
  • 修改/etc/ssh/sshd_config,增加AddressFamily inet

之后重启ssh服务即可

时间: 2024-10-10 08:49:16

X11 forwarding request failed on channel 0解决方案的相关文章

shell request failed on channel 0

[问题描述]通过rsync做数据同步时,有台机器无法同步成功[问题排查]通过ssh 连接目标机器,出现如下报错ssh -i '/.ssh/id_rsa' [email protected] shell request failed on channel 0[解决办法]经查是因为系统的进程数小,导致不能正常连接.普通用户 max user process值是不生效的,需要修改/etc/security/limits.d/20-nproc.conf文件中的值. 如果使用*号让全局用户生效是受文件/e

Xshell报错“The remote SSH server rejected X11 forwarding request.”

xshell连接centos7,报错:"The remote SSH server rejected X11 forwarding request." 打开文件/etc/ssh/sshd_config,修改下面的参数 X11Forwarding yes 如果有,那就不用修改 修改xshell连接属性 把勾选去掉即可! 参考:https://blog.csdn.net/salonzhou/article/details/16358711 原文地址:https://www.cnblogs.

Warning:The remote SSH server rejected X11 forwarding request.

初次升级Openssh 7.1 p2之后,然后用Xshell远程连接出现WARNING,如下图所示: 解决方法: 方法一:修改配置文件 vim /etc/ssh/sshd_config 将文件中的X11Forwarding的注释去掉并将参数由no改为yes 然后再将UseLogin no的注释也去掉. 保存之后重启sshd服务. 方法二:如下图所示:

AFNetworking 3.0.4 Error:"Request failed: unacceptable content-type: text/html"

使用AFNetWorking上传内容+参数, 1 NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFor

Error Domain=com.alamofire.error.serialization.response Code=-1016 &quot;Request failed: unacceptable content-type: text/html&quot; 的问题原因及解决方案

Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html",此问题的原因就是使用的第三方框架AFNetworking 接口返回值类型不确定,由于服务器人员习惯于使用html文件所以将json文件也这么写了,导致没法解析 在模型类或者网络工具类中添加这句代码就能完美解决上述问题,建议不要直接修改AFNetw

X11 Forwarding using Xming and PuTTY

We can run graphical programs on Linux/Solaris machines on campus remotely and display them on your desktop computer running Windows. We can do this by using running two applications together on your Windows machine: Xming and PuTTY. What is Xming? X

php file_get_contents失败[function.file-get-contents]: failed to open stream: HTTP request failed!解决

在使用file_get_contents方法来获取远程文件时会出现 [function.file-get-contents]: failed to open stream: HTTP request failed! 错误 解决方法是:修改php.ini 中的allow_url_fopen = On 这样可以解决部分人的问题, 完美的解决方案还得修改user_agent="PHP"  ,将参数改为Mozilla/4.0 (compatible; MSIE 6.0; Windows NT

iOS 使用AFNetworking遇到错误 Request failed: unacceptable content-type: text/html

错误日志: Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7f999be478d0> { URL: myUrlX

Error Domain=com.alamofire.error.serialization.response Code=-1016 &quot;Request failed: unacceptabl

在使用AFNetworking 2.0  的时候本来一切很顺畅,但是中途遇到几个比较坑的地方 这里分享一下爬坑经历,忘读者不能速爬坑! 在发送请求后,NSURLSessionDataTask一直报错 Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" AFURLResponseSerializat