-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"rke up" got "ssh: rejected: administratively prohibited (open failed)" #93
Comments
Is this on CentOS/RHEL by any chance? |
Can you also make sure that the ssh user you are using has access to docker engine |
i also meet the same problem。i even try root user to ssh ,but the rke still failed。 |
@nevermosby have you solved the problem? |
@iyacontrol Please share used OS ( |
@superseb CENTOS_MANTISBT_PROJECT="CentOS-7" |
@superseb Linux 3.10.0-693.el7.x86_64 |
@superseb yeah, it is a centos system, details are listed beblow:
@galal-hussein I used "root" to run the command so it can be sure I have the access to docker engine. @iyacontrol I still have this issue with centos. New progress here: |
@nevermosby I will try to reproduce with CentOS 7 to see if the problem is related to specific OS |
@nevermosby @iyacontrol @superseb I was able to reproduce the issue, however i am not sure what is the root cause, CentOS seems to reject ssh local forwarding using the root:
however it works for another users other than root, for a work around you can specify other users than root for now |
@galal-hussein thx for feedback. On the same centos machine, I took ur advice and tried another user other than root but got same error. |
@nevermosby can you make sure that the ssh user has access to docker engine, you can add the user to docker group and use it in cluster.yml |
@galal-hussein yes I am sure I have added the user to docker group and tried "docker push" command, it works.fine. |
@nevermosby Can you post the version of openssh currently installed on the centos server |
@galal-hussein sorry for late reply. The version installed on my centos machine is :
|
@galal-hussein |
@niusmallnan No i don't think this is the issue, i just tested with disabling PAM and same error, also i think not using PAM is not recommended in RHEL |
@nevermosby You need to upgrade your openssh server to 7.x to get support for local stream forwarding. |
Hi @moelsayed ,thx for remind and I just upgraded my openssh version to 7.4 and enabled "AllowTcpForwarding" for yes: ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 However, I still got the same error. Maybe the forwarding configuration is not right. Could u give some advise for this? |
if you run rke in centos7, you should not use the root user to open the ssh tunnel.you can try the following step to run rke
now you can run "rke -d up" to setup your k8s cluster. |
Hi @luoshiqian thanks your solutions worked for me on centos 7.4 |
@luoshiqian Thanks for the steps, OpenSSH doesn't allow ssh tunneling for root users for some reason, closing this issue and will track the root user bug in this issue #136 |
I had same problem, found you that problem was on mine side. In authorizedkeys in key usage restrictions. |
rke version: rke version v0.0.7-dev
problem:
when to run "./rke -d up" with the file "cluster.yml" in the same folder, I got:
Tried to fix it by enabling the ssh config,
AllowTcpForwarding yes
, but failed.Any suggestions?
The text was updated successfully, but these errors were encountered: