Mac login Ubuntu14.04 with SSH

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.