How to install Samba and SSH server under Ubuntu 14.04

Source: Internet
Author: User
Tags ssh server

Previously, the FTP server was built: http://www.cnblogs.com/bcsflilong/p/4200139.html

Today, let's talk about the setup of Samba and SSH servers.

Let's talk about samba first.

There are two ways to install in the ubuntu14.04 version!

Simple, rough apt-get.

1 sudo apt-get Install Samba

or right-click on any folder, right-click menu, then tap local network share,

Then tick share this directory, the system will pop up prompting you to install the necessary packages. It is recommended to install this way!

After the installation is complete, click Edit Share, OK so the installation is complete,

You can access your shared folder on other machines in your LAN, and if you cannot access it, check your firewall configuration. Or does the SMBD service start?

Restart the SMBD service command:

sudo service smbd restart

View SMBD Status:

[Email protected]:/etc/init$ ps-e |  5190 ?        xx:xx5239 ?         xx:xx smbd

If there is no special requirement, you just need to share the folder, without modifying the default configuration. If you need to modify the configuration file in:

[Email protected]:~$ cd/etc/samba/[email protected]:/etc/samba$ lsgdbcommands  smb.conf  Tls[email protected]:

The smb.conf file is the configuration file.

If the installation plays, it causes the terminal to appear some inexplicable error. Please perform

sudo pam-auth-update

Remove the SMB Password synchronization before the TAB key is selected to confirm the carriage return.

Let's say the installation of SSH service is easy to access!

This is more simple, install the command:

sudo apt-get Install Openssh-server

Ok this is done without any configuration, it can be used.

Restart command:

sudo service ssh restart

To view the SSH service status:

[Email protected]:/etc/init$ ps-e |  3118 ?        xx:+ sshd

Also say configure SSH and smbd let them not boot up

[Email protected]:~$ cd/etc/init[email protected]:/etc/init$ sudo gedit ssh.conf smbd.conf

Smbd

will start on (Local-filesystems and net-device-up)
Instead: Start on RunLevel [345]

#start on (Local-filesystems and net-device-up) start on RunLevel [345]

Ssh:

will start on RunLevel [2345]

Instead: Start on RunLevel [345]

#start on RunLevel [2345]start on RunLevel [345]

Well, that's basically it.

How to install Samba and SSH server under Ubuntu 14.04

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.