在机房的 linux服务器重启后需要重新输入账号,密码
如果没有输入账号 密码ssh就连不上
请问这个问题大家是怎么处理的啊? 谢谢!
PHP中文网2017-04-17 14:00:46
I think it’s because you manually configured shhd yourself, and then you didn’t write it in the right place when starting it?
From your description, it seems like the shhd startup configuration is here /etc/profile
.
So start the ssh service whenever you log in as a user.
PHPz2017-04-17 14:00:46
Can you tell me your problem? Shouldn't I enter my account and password again after Linux restarts?
PHP中文网2017-04-17 14:00:46
Did you enter the account password under Linux? Is there any error report? Can you be more detailed?
天蓬老师2017-04-17 14:00:46
@zhaorong @ the last forest
The server is in the computer room. After restarting, you need to enter your account and password to log in,
But at this time ssh can no longer connect
I can’t enter my account and password remotely, so I would like to ask you how to solve this problem
阿神2017-04-17 14:00:46
I can’t understand why I have to enter my account and password after restarting, and I can’t connect to SSH without entering it. Is it possible to set a GRUB password?
黄舟2017-04-17 14:00:46
What kind of Linux system, as long as sshd is self-starting at the system level (not user-level self-starting), it doesn’t matter whether you log in to Linux in the computer room
伊谢尔伦2017-04-17 14:00:46
The user home directory is encrypted! As a result, /home/<USER>/.ssh/authorized_key cannot be accessed and sshd cannot be started.
1. Unmount encryption
ecryptfs-umount-private
2. The directory is writable
chmod 700 ~/Private
3. After backup, delete the relevant directories
rm -rf ~/Private ~/.Private ~/.ecryptfs
4. Uninstall encryption tools
sudo apt-get remove ecryptfs-utils libecryptfs0
Reference http://ju.outofmemory.cn/entry/225033
伊谢尔伦2017-04-17 14:00:46
Think about the several situations in which you can’t connect
1: Is the server disconnected from the network?
2: Has the IP changed after restarting?
3: Is your local ssh machine disconnected from the network?
4: Check your server’s ssh server
5: Whether the two machines are on the same LAN
高洛峰2017-04-17 14:00:46
Different situations require different handling methods. chkconfig sshd on, try
PHP中文网2017-04-17 14:00:46
Sigh, sf is a rubbish Q&A platform. It’s so rubbish. Even if you ask a question, it will be shut down. Did I post any bad information? There are ads?... It’s actually shut down. I’m drunk. No wonder there are so many articles. All questions, no answers... rubbish