sftp

Number of sftp connections allowed in a VM

Number of sftp connections allowed in a VM I understand that more than one SFTP connection is generally allowed. I would like to ask if this is possible even in a VM (virtual machine). In other words, I would like to establish more than one SFTP connections in the same VM. Note that the purpose …

Total answers: 1

Download and Remove the files from SFTP server

Download and Remove the files from SFTP server I am using this to download the file from remote server but could you guide how can I use one command to first download and then remove the file from server. sshpass -p password123 sftp User@sft.domain.co.uk:/Complete2/Database.bak /home/user/.docker/appdata/mssql/backup/Database.bak Thank you Asked By: mouzzampk2014 || Source sftp usually accepts …

Total answers: 1

Openssh – Allow root access sftp and ssh in the same server

Openssh – Allow root access sftp and ssh in the same server I want to configure sftp on my server to be accessed by root user. I changed my configuration of /etc/ssh/sshd_config to: PermitRootLogin yes AuthorizedKeysFile .ssh/authorized_keys PermitEmptyPasswords yes ChallengeResponseAuthentication no Compression no ClientAliveInterval 15 ClientAliveCountMax 4 #Other options are commented […] Subsystem sftp /usr/libexec/sftp-server …

Total answers: 2

sFTP admin permission denied when placing files into user directory

sFTP admin permission denied when placing files into user directory I am running Ubuntu 22.04.3 with an sFTP server configured through SSHD. I have several user home directories each with a dropoff and a pickup folder inside of them. While my admin user is able to navigate the server and view the contents of any …

Total answers: 1

What can I determine about my public key on host server?

What can I determine about my public key on host server? The administrators at sftp.foobar.com have done the following: Acknowledged receipt of my public key. (id_rsa.pub) Given me a hostname of their server (sftp.foobar.com) Given me a userid for an ssh/sftp connection (foo_user1) Here’s my .ssh/config entry Host foobar identityfile id_rsa hostname sftp.foobar.com user foo_user1 …

Total answers: 1

SFTP prompts for username again after initial command

SFTP prompts for username again after initial command When I input for sftp like this, it normally gives me a password prompt because the username is in the command, but with this one machine it asks for the username again. sftp testuser@10.10.10.10 Username: After input the username again and my password, it logs in just …

Total answers: 1

can we run ftp or sftp from single user account?

can we run ftp or sftp from single user account? I have installed ftp and sftp on my linux mint system, for wordpress file transfer I had to create new user account for ftp and sftp on my system during the installation process. Is it possible to run ftp and sftp from home user account, …

Total answers: 1

verifying network is or is not reaching my server through CentoS 7 Logs

verifying network is or is not reaching my server through CentoS 7 Logs I am pretty limited on actual server details and configurations I can share but will try my best to describe the issues and what I want to be able to do. the issue I am facing is as follows, I have an …

Total answers: 1

How to let user can only read files?

How to let user can only read files? I have some new files to release every day. My coworker needs to sftp/scp to my Linux server to copy these files. I don’t want him to do any file delete/move/execution…etc, the only thing he can do should be copied (scp/sftp) the files back. The best is …

Total answers: 1

Add a remote location through a login machine

Add a remote location through a login machine I have my Ubuntu laptop (call it A) and I want to add a computer (call it B) to the "Other locations" tab of nautilus. The problem is that I can not ssh directly from A to B, but through a login machine (call it L). So …

Total answers: 1

SFTP with passphrase (one line command)

SFTP with passphrase (one line command) This works, but then I have to type the password manually sftp -oStrictHostKeyChecking=no -i ./id_rsa user@host << ! cd /path ! This doesn’t work. The command never completes execution export SSHPASS=pass sshpass -e sftp -oStrictHostKeyChecking=no -i ./id_rsa user@host << ! cd /path ! Have also tried this, but same …

Total answers: 1

SFTP issue with profile output

SFTP issue with profile output After SFTP logins were no longer working with error 127 we found that the SSH connection created some output by a script installed in /etc/profile.d/. Previous versions of sshd had an option available called "UseLogin" which by default was set to "no", thus did not execute stuff from profile. Now …

Total answers: 2

How can I share files on the server with others users in internet?

How can I share files on the server with others users in internet? I have a linux server that I manage via SFTP and SSH. Some files are generated on the server through scripts. How can I make it so that I can give users on the Internet links to specific files (so that a …

Total answers: 1

sFTP : Error message : client_loop: send disconnect: Broken pipe

sFTP : Error message : client_loop: send disconnect: Broken pipe I’m getting the following error while trying to connect to server via sftp : "client_loop: send disconnect: Broken pipe" Could someone help me ? Server : Ubuntu 22.04 lts 1. chown -hR root:root /mnt : -> make root the owner of /mnt and all its …

Total answers: 1

What explains this sftp login success/failure behaviour in conjunction with different ftp directory chmod settings?

What explains this sftp login success/failure behaviour in conjunction with different ftp directory chmod settings? If I start off with – sudo groupadd test_group sudo useradd -g test_group -s /sbin/nologin test_user sudo passwd test_user …(some password)… sudo mkdir -p /testdir/dev And I also have ‘/etc/ssh/sshd_config’ as follows – Include /etc/ssh/sshd_config.d/*.conf ChallengeResponseAuthentication no UsePAM yes X11Forwarding …

Total answers: 1

Is it possible to use two-factor authentication with any SFTP client?

Is it possible to use two-factor authentication with any SFTP client? Is possible to integrate two-factor authentication for transferring files or uploading the codes to a web-server? If yes, will it work for any client or it will work for a specific SFTP client? Asked By: AReddy || Source Is possible to integrate two-factor authentication …

Total answers: 1

Why do I not need to start an SFTP Server ( why does SSH automatically start SFTP )?

Why do I not need to start an SFTP Server ( why does SSH automatically start SFTP )? Question When I start SSH server, my Debian automatically start the SFTP server as well – why is it design in such way? Environment: Linux 5.10.0-14-amd64 Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux ssh.service – OpenBSD Secure Shell server …

Total answers: 3

Different timestamps in SFTP "ls -l" vs. "ls -lh"

Different timestamps in SFTP "ls -l" vs. "ls -lh" I have a 3rd-party SFTP server on which I want to check some file timestamps. However, I do get different results for the same file if I use ls -l vs. ls -lh: sftp> ls -l […] -rwxrwxrwx 1 0 0 1963 Nov 15 08:49 foo.txt …

Total answers: 1

SFTP dual authentication with batchfile

SFTP dual authentication with batchfile I’m trying to connect to a server where dual authentication (publickey,password) is enabled. I’m using sshpass to provide password to automate the script, but when I have batchfile with SFTP, connection fails without batchfile connection succeeds export SSHPASS=helloworld (sshpass -e sftp -b batfile.txt -o ‘PasswordAuthentication=yes’ -o ‘PreferredAuthentications=publickey,password’ -o ‘StrictHostKeyChecking=no’ user@hostname) …

Total answers: 1