Configuring Ssh-server on Ubuntu
sudo apt-get install openssh-server?
Then confirm that Ssh-server is started?
Ps-e | grep ssh
If there is an sshd, it means that Ssh-server has successfully opened.
1670? 00:00:00 sshd14543? 00:00:00 sshd14635? 00:00:00 sshd
If you do not have sshd, you need to manually open
/etc/init.d/ssh start
Refer to this article for additional configuration: http://www.oschina.net/question/234345_40918
?
Sign in to SSH on your Mac
I use the terminal is ITERM2, the system terminal is the same.
If you don't have a configured Mac, you'll get the following error the first time you log in
Ssh:connect to host localhost Port 22:connection refused
The reason for denying access is not set in "System Preferences", refer to this article: http://www.tuicool.com/articles/YreMV3v
Simple configuration can be solved.
?
Solution for garbled terminal on Mac
Add the following code to the server's. bashrc file:
Export lang= ' UTC-8 '?
Export Lc_all= ' en_US. UTF-8 '?
and source a little bit.
SOURCE ~/.BASHRC
After that, the encoding in terminal preference on the MAC is changed to UTF-8
It's done!
?
Refer to http://segmentfault.com/q/1010000002426378 for details
There are other ways to set it up, such as http://blog.csdn.net/abcjennifer/article/details/46438717
?
The ITerm2 settings are as follows http://blog.csdn.net/wirelessqa/article/details/12583925
?
Mac login Ubuntu14.04 with SSH