Solaris 10 Enable/disable SFTP service, SSH service

Source: Internet
Author: User
Tags file transfer protocol

The Solaris 10 itself comes with an SFTP client and an SFTP server, where the SFTP server uses sshd to implement the SSH file Transfer protocol. By default, the Solaris 10 SSH service is turned on and the SFTP service is on, and all local UNIX user accounts can log on to the computer using SFTP.
The default SSH service is turned on, and you can use the Svcadm disable Svc:/network/ssh:default command if you want to disable SSH services.   If the SSH service is not turned on, the SSH service can be enabled using "Svcadm Enable Svc:/network/ssh:default". If the SSH service is turned on, the default SFTP service is turned on. If you want to disable the SFTP service, you can modify the/etc/ssh/sshd_config file, delete the "Subsystem sftp/usr/lib/ssh/sftp-server" line, save the file exit, and then use the Svcadm refresh   Svc:/network/ssh:default "can. If the SSH service is turned on, but the SFTP service is not turned on, to turn on the SFTP service, add "Subsystem sftp/usr/lib/ssh/sftp-server" to the/etc/ssh/sshd_config file and save the file after exiting the Use "Svcadm refresh Svc:/network/ssh:default". 、
Generate SFTP Password: 1, Run command, generate key pair: #/usr/local/bin/ssh-keygen-t DSA in System A 2, copy public key ("Id_dsa.pub") to $home/.ssh/folder of System B 3, in B series Id_dsa.pub renamed Authorized_keys 4, using the SFTP command in System B to connect system a


Solaris 10 Enable/disable SFTP service, SSH service

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.