Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Cygwin SFTP connection closed after PubKey authentication when Match User is set up in sshd_config

I have problem during configuration of Cygwin sftp server on Windows Server. When I'm trying to change root directory of one user with Match User I got "Connection closed" after sftp to this ...
Hubert Lubaś's user avatar
0 votes
1 answer
70 views

Ubuntu SFTP Server Permissions

I'm trying to create a SFTP server using Ubuntu Server 24.04 LTS, and I'm having trouble copying to the folder I created: The sshd_config sets ChRootDirectory to \sftpsrv, which is a mounted disk ...
SIMOES's user avatar
  • 9
0 votes
1 answer
31 views

scp not working in a custom python shell script after migration from ubuntu 20.04 to debian 12

I have this backup server where various clients upload daily archives via scp. In order to protect the machine and to manage the backups, I have written a simple python shell script that only allows ...
velis's user avatar
  • 575
0 votes
0 answers
21 views

SFTP: Pull files from remote host without directly knowing that they are there?

I'm sure someone has encountered a similar problem to mine before but I can't seem to find a solution by myself: There are two Debian hosts - one within a DMZ, the other within a secure environment. ...
kandreijewsky's user avatar
0 votes
1 answer
47 views

SSH key works for FileZilla and Windows CMD, but not PuTTY

I upgraded Raspbian on my 6 Raspberry Pi units from Bullseye to Bookworm by: Updating /etc/apt/sources.list. sudo apt update sudo apt full-upgrade I didn't change anything in the upgrade. The ...
Sawtaytoes's user avatar
0 votes
1 answer
45 views

How can I configure OpenSSH to forward SFTP-Requests?

I have a two-server setup in which one is only reachable via the other. The corresponding client config looks like this: Host <actual_host> User root ProxyCommand /bin/bash -c "ssh ...
Shade's user avatar
  • 11
0 votes
0 answers
30 views

Tmux session disconnect does not preserve session content when reconnecting

I need to copy a 200gb+ file to multiple servers from one server. I have a sftp transfer running in multiple tmux sessions from the one server. When I press ctrl+b, d to exit the tmux instance and ...
user460178's user avatar
0 votes
1 answer
1k views

Windows Server 2022 openssh sftp change default directory

Windows Server 2022 Installed optional feature OpenSSH Server With FileZilla I connect to server as MyUser which opens to /C:/Users/MyUser/ which is the default directory. But what I want is for the ...
BaltoStar's user avatar
  • 189
1 vote
0 answers
159 views

Make sftp-server return a banner/disclaimer

I am deprecating sftp access in favor of a restricted ssh based API. I need the sftp-server (OpenSSH) to return a fixed message "SFTP access will be shutdown soon", preferably on STDERR, ...
oᴉɹǝɥɔ's user avatar
0 votes
0 answers
172 views

FileZilla stopped using keys from ssh-agent on macOS

I recently set up SSH access to my web servers on my Mac by following GitHub's documentation for Generating a new SSH key and adding it to the ssh-agent. After that, I installed FileZilla and the ...
kataba's user avatar
  • 11
0 votes
1 answer
356 views

SCP from server to local host failed

I am sure I was SCPing some files TO the server before, but now it does not work in opposite direction. I'm using: $ scp -v mysrv:/home/XXX/dir/app.rb app.rb.bak Authenticated to mysrv ([88.88.111.11]...
A.D.'s user avatar
  • 563
0 votes
2 answers
547 views

Can I access an SFTP server via an SSH tunnel?

I have a Linux server with IP 1.2.3.4 which can access an SFTP server 2.2.2.2. The SFTP only allows access from the IP 1.2.3.4. Now I also want to access the SFTP server from my Windows computer using ...
me.at.coding's user avatar
  • 1,587
0 votes
2 answers
1k views

scp -O (legacy protocol) option per config file?

I basically have the same problem as described (and solved) here: https://stackoverflow.com/questions/74311661/subsystem-request-failed-on-channel-0-scp-connection-closed-macbook This is: scp to some ...
Heiko Finzel's user avatar
0 votes
0 answers
119 views

Remove BOM mark in sftp username when using openssh

I'm running an SFTP server using openssh 1:8.9p1-3ubuntu0.1 on Ubuntu 22.04. A reoccurring issue with connecting clients is the username is prefixed with \357\273\277 one or more times. This is a UTF-...
kmiller's user avatar
2 votes
1 answer
816 views

sftp rename (mv) with wildcard

I use sftp to download files from a server nightly. Presently I batch download them with this sftp script: chmod 444 /home/sftpserveruser/.HL7 get MTB.HL7 /data/hl7/downloads/mtb/ I'd like to be able ...
a coder's user avatar
  • 483
0 votes
1 answer
147 views

Blocked server, SSH: How to revert the situation

I tried to use SFTP using sudo to make changes in a file, following instruction: Adding this line was a fix for me and comment the existing subsystem line: /etc/ssh/sshd_config: Subsystem sftp sudo -...
Michal Zielarz's user avatar
1 vote
0 answers
321 views

curl sftp uploads empty file without error

How can I solve or better troubleshoot the following problem? I need to upload a text file using curl via sftp to a remote server. Authentication works, no error returned, but the file is created ...
Anton Yaniuk's user avatar
0 votes
0 answers
33 views

sftp connection from one server to another server [duplicate]

I want to connect to a sftp server from another sftp server.How do i do that.After i connect to a sftp server,at the sftp prompt i would need to connect to another sftp server.How can that be done and ...
Ritwik Mohapatra's user avatar
0 votes
0 answers
398 views

Outbound message too long when uploading files to apache sshd sftp server

The following error is thrown while trying to upload files (>=500KB) from linux sftp client to an sftp server implemented with apache sshd. Outbound message too long 262197 The same server works ...
Jonny Marotte's user avatar
0 votes
1 answer
232 views

Is there a way to tell if my key pair is an OpenSSH keypair? [duplicate]

Our Oracle service is migrating servers to the Oracle Cloud. We need to change the host for our SFTP access. "The authentication via your SCP login name and SSH2 keys remains the same if your ...
Sarah Harrison's user avatar
0 votes
0 answers
108 views

SFTP won't launch when using custom script through ForceCommand on Win32 SSH

I've written a script to send an email alert when a user logs in via SSH. It is triggered through ForceCommand. This works fine when opening terminal windows but SFTP won't work (Bitvise log says &...
Mark Williams's user avatar
0 votes
0 answers
32 views

Unable to connect to SFTP server using a Public IP address [duplicate]

I have setup a SFTP server on my Personal PC. I have started the service with the following configuration: # This is the sshd server system-wide configuration file. See # sshd_config(5) for more ...
Arjun Starz's user avatar
0 votes
0 answers
2k views

How to use sudo with sftp through winSCP?

I found a few sources stating that I can use SFTP with a sudo user through an SFTP client (specifically winSCP). This link outlines all the steps I need to take, and it's still not working (https://...
Warsame's user avatar
0 votes
1 answer
952 views

Why does SFTP prompt for a password when trying to connect to azure storage that should only accept RSA keys?

When I try to make an SFTP connection to an azure storage account using RSA keys azure still prompts me for a password. This problem occurs only on my laptop which is running Ubuntu 22.04.02 LTS on ...
Jonas's user avatar
  • 101
1 vote
1 answer
515 views

Ubuntu Nautilus sftp to server that has 2fa on is not working

I can ssh to a server that has 2FA, but I can't access it through Ubuntu (20.04) nautilus sftp. sftp://hostname.com or sftp://[email protected] results in time out, adding port 22 does not help. All I ...
user43280's user avatar
0 votes
0 answers
309 views

How to connect to sftp server from MacOS terminal using a SOCKS5 proxy with username and password?

There are similar questions like this around, but I haven't been able find the answer to my question, which is: How to connect to sftp server from a MacOS terminal using a SOCKS5 proxy with username ...
Johan's user avatar
  • 103
0 votes
1 answer
2k views

Can SSH into server, but not SFTP

The server is actually the iSH app, a prooted (?) Alpine Linux under i(Pad)OS, which runs almost flawlessly, I can even SSH into the iDevice from any macOS or Linux terminal. This is a really nice app,...
user513667's user avatar
3 votes
1 answer
3k views

Is it ok if I deleted the known_hosts file from .ssh folder?

I set up SFTP server in my local PC (Windows 10) but I made a mistake and deleted the "known_hosts" and "known_hosts.old" file in ".ssh" folder. When I check Recycle Bin, ...
HuynhMinh's user avatar
11 votes
5 answers
13k views

Get file from remote over ssh, with simple "get file"?

Is there a way to get a file from a remote server you are connected to via ssh, by simply running a command like get file within the ssh session? Is there a method, or pre-existing tool, to do this? ...
Hiccup's user avatar
  • 329
0 votes
1 answer
1k views

How do config that an SFTP user can access two root folders on different drives from OpenSSH Windows Server?

SFTP user is a service account so we cannot create 2 separate service accounts per employee. One service account is under group service 'Users' and 'Admin-Users' then it should be able to access the ...
Snowprincez Coffee's user avatar
0 votes
0 answers
1k views

Why am we still getting "Provided host key does not match remote server's fingerprint." in Netsuite when the host key sent matches that of the host?

We are encountering an error in Netsuite where despite the host key being inputted in Netsuite matching that of the server we're connecting to, Netsuite continues to error that the: "Provided ...
Christian Bannard's user avatar
0 votes
1 answer
426 views

problems with the user login using sftp. user root works fine

i am trying to do a sftp from my user in linux vm. After i enter my password i get the message: Connection closed. When I try to login with the root user, it is working fine. I found that the issue ...
michi's user avatar
  • 101
0 votes
0 answers
25 views

Accessing a VM on DigitalOcean withpassword bypassing SSH verification

I have an ubuntu server on DigitalOcean, that uses SSH to connect. I created a user with a specific home directory, to share with a third party so that they can connect via SFTP and send us files. The ...
user1750494's user avatar
1 vote
1 answer
2k views

How to change ssh/sftp password if SSH shell is disabled and passwd command is disabled too

WinSCP documentation says: If your SSH server allows changing your account password, go to Session > Change Password to request that. And indeed, WinSCP can change SSH/SFTP password on server we ...
Liso's user avatar
  • 119
0 votes
0 answers
477 views

SFTP disconnects if directory owner is not root

I'm on Debian 11, using openssh-server 8.4, trying to build an sftp server for HTML uploads. The upload destination directory is "/var/www/html" and the username is "sftp-user". ...
TranslucentFoxHuman's user avatar
0 votes
0 answers
1k views

Windows can't find SSHFS

When mapping a network drive on Windows 10, after installing SSHFS-Win and WinFsp, I get the error message "Windows can't find ssfhs". Any idea why this is happening? Here is the steps that ...
sam wolfe's user avatar
  • 101
0 votes
0 answers
578 views

i want to turn my Windows computer into SSH Server How can i do this

i want to connect my mobile to my computer and transfer some file using ssh so i use JSCH as client connected online SFTP servers for testing it working i am able to make connection . so i installed ...
user2975634's user avatar
0 votes
0 answers
6k views

FATAL ERROR: Received unexpected end-of-file from SFTP server

i have a sftp connection and it is working fine, this was the previous working setup: #ADDED starts Subsystem sftp internal-sftp Match group sftpgroup ChrootDirectory %h X11Forwarding no ...
Aayush Dahal's user avatar
0 votes
1 answer
154 views

Do I need an RSA private key in order to upload files using SFTP with the SSH.NET library for .NET?

Is it essential that I have an rsa private key or is it possible to use a username and password? I ask because of this explanation for the SSH.NET library for .NET: “Establish a SFTP connection using ...
dan178's user avatar
  • 103
4 votes
1 answer
888 views

What user's rights are used when a client gets a file from an SFTP server?

When a client connects to an SFTP server to get a file, is the file normally read from the host system using the rights granted to the account running the SFTP client or using the rights granted to ...
Pat Fahy's user avatar
0 votes
1 answer
340 views

How to transfer files to server with RSA key auth?

I'm in PowerShell and I can ssh into the server via: ssh -i my_rsa [email protected] How can I transfer files with this same my_rsa private key? Filezilla doesn't support the key and I've tried to convert ...
Ryan's user avatar
  • 131
0 votes
1 answer
1k views

Cannot exit sftp

I'm having some major issues with sftp. Currently I can transfer files to and from the server just fine but I cannot actually exit; typing exit or bye does not return me to my PC's shell but just ...
Prince Komali's user avatar
0 votes
0 answers
3k views

Can't convert OpenSSH private key to RSA

There are numerous sources online including this one that say an OpenSSH private key: -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNz....blah etc....DBAUGBwgJ -----END OPENSSH PRIVATE KEY----- can be ...
confused-dev's user avatar
0 votes
3 answers
3k views

Unable to Connect to SFTP with Public Key

We use Copssh and we are having an issue getting Public Keys to properly work when connecting our SFTP. I've looked up as much as I could related to permissions, steps, etc. but I get a "Server ...
Joe's user avatar
  • 1
1 vote
0 answers
2k views

How to limit number of simultaneous connections to an SFTP server with Open SSH

I used Open SSH to set up an SFTP server on a Windows instance of AWS, this server will be used by two parties A and B, B will put some files in the SFTP server, and A will retrieve them, I need to ...
 Annis99's user avatar
1 vote
0 answers
202 views

Unable to do SFTP after enabling IAP for vms in GCP

I have enabled IAP to ssh the vm , but the problem is after enabling it I am not able to do sftp , previously I was able to sftp using the vpn. IAP configuration page I can do ssh with gcp console ...
dante alighieri's user avatar
0 votes
0 answers
942 views

Can't connect to remote SSH server, port 2222

I have problem with connection to remote server via SFTP from my MacOS, tested in FileZilla. Terminal SSH connection with same user&name (or key) works correctly. open "user@server_ip ...
pavel's user avatar
  • 101
0 votes
0 answers
1k views

Ubuntu Server 22.04 SSH ChrootDirectory not behaving as expected when accessing via SFTP

Generally after successfully logging in via sftp and executing a put command I would expect my file to transfer to the logged in user's $HOME directory. This works out of the box, but I would like to ...
Paul Hoke's user avatar
1 vote
1 answer
2k views

Sending command: scp -v -t / exec request failed on channel 0

Attempting to send a simple txt file (soon to be csv files) from Windows Server 2019 using scp command (or sftp, or ssh) to a remote server. Remote server employee gave us a username and password to ...
cooldan1's user avatar
1 vote
1 answer
447 views

Key refused in Sublime SFTP, but works in PuTTY

I've been using the SFTP package on Sublime Text to connect to AWS EC2 instances for a few years now and I've never had any problems. Today I created a new instance and for some reason I'm having ...
Júlio Pradera's user avatar

1
2 3 4 5
9