Linux restricts user permissions, JSch, ChannelSftp, ChannelExec, java.util.InterruptedException, /etc/ssh/sshd_config, setfacl

Problem background: Other systems need to get files on the server when requesting my interface, but I don’t want to give them to users with more permissions. So I want to create a new user sftpuser on Linux. This user can only download files from the directory and subdirectories I provided, and cannot perform other […]

SD3403, HI3559, arm cross-compilation, arm adds sshd and sftp services, zlib, openssl, openssh, haveged

Already used on zynq, hi3519, hi3559, SD3403 and other types of chips Download the required resources zlib, openssl, openssh, haveged The version I downloaded Decompress tar -zxvf openssl-3.1.2.tar.gz tar -zxvf openssh-9.4p1.tar.gz tar -zxvf haveged-1.9.2.tar.gz Then create the installation folder after compilation. Note that openssh does not need to create get Start configuration and compilation. Compile […]

sshd server configuration

Article directory **sshd server configuration file:/etc/ssh/sshd_config** Parameter Description: sshd client configuration Client configuration file Client configuration file: /etc/ssh/ssh_config How to use the client Remote login Push Upstream Copy Pull Downlink Copy sftp command **sftp command format:** Common commands after sftp connection: **The difference between sftp and ftp:** Password-free login verification method Set up password-free login […]

1. RPM software management 2. YUM software management 3. Use pgrep and pidof commands to view the process number of sshd service 4.4, configure the network: add an IPV4 address of this network segment for the network card, x.x.x.123, and enable it, and then in the Ali mirror station GN

1. RPM software management 1> Install vsftpd software via rpm [root@localhost ~]# mount /dev/sr0 /mnt mount: /mnt: WARNING: source write-protected, mounted read-only. [root@localhost ~]# cd /mnt/ [root@localhost mnt]# find . -name “vsftpd*” ./AppStream/Packages/vsftpd-3.0.3-49.el9.x86_64.rpm [root@localhost mnt]# rpm -ivh ./AppStream/Packages/vsftpd-3.0.3-49.el9.x86_64.rpm warning: ./AppStream/Packages/vsftpd-3.0.3-49.el9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Verifying… ################################### [100%] Preparing… ################################### [100%] Updating […]

03-03 Friday Mirror installation of sshd and jupyter and password modification

03-03 Friday Mirror installation of sshd and jupyter and password modification Date Version Modified By Description March 3, 2023 15:34:49 V0.1 Song Quanheng New document Introduction ?Since jupyter and sshd need to be installed in the image, and the password needs to be modified, the engineering design of these two interaction methods is recorded in […]

sshd source code compilation error handling

Sshd source code compilation error handling: These are some problems that the author encountered when compiling and installing the sshd service for the first time. I hope it can help some problems encountered by beginners in Linux: error message encountered Mistake one: This error message “working libcrypto not found, check config.log” usually appears when trying […]

[Solved] Ubuntu: After the ssh upgrade, the service is unstable and restarts continuously. Check the solution for the sshd service status as activating (start)

Phenomena: After Ubuntu20.04 upgrades ssh7.4 to 8.1, the ssh connection is unstable and intermittent. Systemctl status sshd checks that the service status is activating (start), and checks /var/log/syslog that continuously prompts sshd.service holdoff time over ,scheduling restart Reason: /usr/lib/systemd/system/sshd.service is not compatible with systemd Solution: mv /usr/lib/systemd/system/sshd.service /etc/ssh_bak/ systemctl daemon-reload Check it out before restarting: […]

[Solved] xshell7 cannot connect to the linux virtual machine remotely, and an error is reported when starting SSHD: Bad SSH2 cipher spec…

Project Scenario: xshell7 cannot connect to linux virtual machine remotely Problem description Terminal input systemctl start sshd Startup error: Type sshd -t View the specific error message: Solution: Type ssh -Q cipher to see which ciphers are used by ssh: Copy results Enter vim /etc/ssh//sshd_config find ciphers, annotate them Add Ciphers, then comma-separate the duplicated […]