Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Use docker-machine to start rancheros, can not login after switching to alpine console. #2210

Closed
kingsd041 opened this issue Jan 5, 2018 · 2 comments

Comments

@kingsd041
Copy link
Contributor

RancherOS Version: (ros os version)
v1.1.3-rc1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
docker-machine
Steps to Reproduce:

  1. I use the docker-machine to start rancheros and switch the alpine console
# docker-machine create -d virtualbox --virtualbox-boot2docker-url rancheros.iso ros-1
# ros console switch alpine
  1. Login to rancheros using docker-machine ssh ros-1
    Results:
    Login failed, return "exit status 255"
# docker-machine ssh ros-1
exit status 255

I can see the error in syslog:

Jan  5 13:25:10 ros-1 sshd[1976]: rexec line 133: Deprecated option ServerKeyBits
Jan  5 13:25:10 ros-1 sshd[1976]: User docker not allowed because account is locked
Jan  5 13:25:10 ros-1 sshd[1976]: Connection closed by invalid user docker 10.0.2.2 port 65522 [preauth]
Jan  5 13:25:11 ros-1 agetty[1978]: ttyS0: failed to get terminal attributes: I/O error
Jan  5 13:25:11 ros-1 agetty[1979]: ttyS1: failed to get terminal attributes: I/O error
Jan  5 13:25:11 ros-1 kernel: [ 1065.744805] ttyS ttyS0: tty_port_close_start: tty->count = 1 port count = 2
Jan  5 13:25:11 ros-1 kernel: [ 1065.745275] ttyS ttyS1: tty_port_close_start: tty->count = 1 port count = 2
@niusmallnan
Copy link
Contributor

niusmallnan commented Jan 16, 2018

Check the file /etc/shadow, user docker is locked.:

rancher:*:17540:0:99999:7:::
docker:!:17540:0:99999:7:::

This blog would be helpful. http://arlimus.github.io/articles/usepam/

It should be fixed in the next alpine console image.

@niusmallnan niusmallnan added this to the v1.2.0 milestone Jan 16, 2018
@kingsd041
Copy link
Contributor Author

RancherOS v1.2.0-rc2 version has been fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants