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