喜悦季节

文章
5
资源
0
加入时间
3年0月21天

无bashrc和profile的ssh登录解决方法

远程机器修改了.bashrc或者.profile的错误的话,source之后无法ssh登录解决办法:ssh -t username@hostname /bin/sh或者ssh usernae@hostname "bash --noprofile --norc"登录上去把.bashrc或者.profile文件改为其他名字,然后就可以正常登录了,正常登录后再查写错的原因即可转载于:http...