-
Notifications
You must be signed in to change notification settings - Fork 680
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
Amazon Linux fails with Error: Error: ioctl(2) failed. #83
Comments
Hi 😃 I was about to open another issue, but since this one is trying to solve which seems to be the same problem I'm just gonna write it here. In my case, to start, like I already said I've the same problem; doesn't matter if I try to connect to 'localhost' or a remote server; the same message pops out at the Terminal:
OS: macOS Sierra (10.12.3). Haven't made any in-depth research though. In case I find any solution I'll post it asap! Have a good day! |
Hi @aleschmid, I hit some similar issues. Looking at this line:
Will give you an idea of the ssh command wetty is attempting. You can use If you don't pass any arguments wetty is running Russ |
Hi @russau! 😃 The first time I wrote the command I didn't have the SSH server up, so it failed as expected. However, 'cause I supected it could be the problem, I didn't even bother to turning it on, I just ran it again but this time pointing to my user at my website's server (using the parameters you mentioned except for the --sshport, because 22 is the default one) —I mentioned it briefly in the previous message:
Both times I got the very same message, which makes me think it's not an SSH problem but a compatibility issue with Mac. Besides, since you brought it up, I just tried going to Preferences and enabling that option in order to see if it was in fact my fault, but it logged-in perfectly through the Terminal's bash. Have a nice day! |
Exact the same issue on CentOS, if wetty is launched by root. Comment the line of /bin /login works |
just run it with "sudo -u < user > wetty". It will run in user space and will not launch /bin/login but ssh.. I had the same problem with FreeBSD, this solved the problem. |
Figured out the issue on FreeBSD! Solution in a nutshell is two-fold: If running as a non-root user:
If running as root:
|
Hi! Thanks! |
I had the same issue which was related to two factors:
|
running as root while the host is localhost has it use |
@lff0305 I had the some issue on my centos, in which file exactly did you do this modification ? |
Stale issue message |
wetty is working fine for me when I don't run as root and allow it to kick off ssh. When it runs as root on an Amazon Linux instance I see
Error: ioctl(2) failed
every time I attempt to connect.I see the code is running
/bin/login
, when I ssh onto the instance and runlogin
as root it kicks out my ssh session. Doing exactly the same thing on an Ubuntu Linux instance works fine. So I'm thinking there is something funny about thelogin
configuration on Amazon Linux. I'm not really familiar enough with it to debug things beyond this. Would appreciate any help anyone can offer.Thanks!
Russ
The text was updated successfully, but these errors were encountered: