vagrant login as root by default

前端 未结 10 2715
春和景丽
春和景丽 2020-12-12 09:34

Problem: frequently the first command I type to my boxes is su -.

Question: how do I make vagrant ssh use the root user by default?

10条回答
  •  我在风中等你
    2020-12-12 10:29

    Dont't forget root is allowed root to login before!!!

    Place the config code below in /etc/ssh/sshd_config file.

    PermitRootLogin yes
    

提交回复
热议问题