更新RStudio server之后
RStudio版本:1.4.1106
$ rstudio-server version 1.4.1106 (Tiger Daylily) for CentOS 7
60分钟之后,会自动退出!
勾选Stat signed in when browser closes,再次打开RStudio还是要重新登录!
之前的RStudio server不是这样的。
安全,是安全了,但是方便在哪里???
issues讨论
https://github.com/rstudio/rstudio/issues/5449
RStudio Server: “Stay signed in” has no effect
保持登录,不起作用!
开发者介绍
In RStudio v1.3, I made the auth timeout more aggressive to address security concerns that sessions could be hijacked due to users being able to stay signed in for so long.
原因:为了更安全,防止被劫持,所以做了自动注销的功能。
解决方法
编辑:/etc/rstudio/rserver.conf
文件,增加下面两个选项,做如下设置:
auth-timeout-minutes=0 auth-stay-signed-in-days=30
- 第一个是,自动退出的时间段为0,表示不自动退出
- 第二个是,将登录的天数保持为30天
然后重启RStudio server,用下面命令:
rstudio-server restart
更新之后的界面:
搞定!
参考
https://docs.rstudio.com/ide/server-pro/authenticating-users.html
https://github.com/rstudio/rstudio/issues/5449
https://community.rstudio.com/t/users-are-not-automatically-logged-out-timed-out-of-rstudio-ide/8448/7