41
votes
permission denied on AWS Transfer on SFTP server
User Role should be:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowListingOfUserFolder",
"Action": [
"s3:ListBucket",
...
35
votes
How ca I make CentOS 7 accept SSH while denying SCP?
It wouldn't help you because the user could trivially do:
ssh user@host "cat /path/to/file" > /local/path/to/file
cat /local/path/to/file | ssh user@host "cat - > /path/to/file&...
27
votes
Accepted
Windows SSH server refuses key based authentication from client
As of Windows 10 v1809, the default config (found in %ProgramData%/ssh/sshd_config) defines a separate AuthorizedKeysFile for administrator users:
Match Group administrators
AuthorizedKeysFile ...
19
votes
Windows SSH server refuses key based authentication from client
OpenSSH on Windows 10 requires additional configuration to recognize authorized_keys:
Save your authorized_keys into the file C:\ProgramData\ssh\administrators_authorized_keys with no extension
Use ...
17
votes
How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?
The Bitvise SSH Client user interface does not provide an option to start the profile automatically when Windows 10 starts up. Instead, you can create a shortcut to Bitvise with the -loginOnStartup ...
16
votes
What's the difference between SCP and SFTP?
From a purely command line perspective :
scp doesn't have an interactive mode nor can it read command scripts, that means everything must be written on the command line.
sftp has an interactive mode ...
15
votes
Accepted
Which internal-sftp options are available?
The internal-sftp supports the same set of options as the sftp-server:
https://man.openbsd.org/sftp-server
Both are built from the very same code.
See also Difference between OpenSSH internal-sftp and ...
15
votes
Accepted
How to find public key of the server using any SFTP/SSH client
The only correct way is to ask the server administrator to provide you the host key.
If you retrieve the host key remotely yourself, you cannot really trust the key, as you can be under a Man-in-the-...
15
votes
Windows: Connect to SFTP server using Windows File Explorer
SFTP is supported on the command-line only via the Win32-OpenSSH sftp.exe, which is built-in on Windows 10 version 1803 or newer.
sftp.exe [email protected]
But the GUI File Explorer does not support ...
15
votes
Windows: Connect to SFTP server using Windows File Explorer
Using WinFsp and SSHFS-Win together you can map network drives over shtp to windows explorer.
Additionally you can use sshfs-win-manager, a GUI tool to manage your connections
Hope that helps.
File ...
15
votes
How do I connect to SFTP with provided SSH Key?
if you use an sftp to connect to an sftp server, you should generate an ssh keypair (ie on unix: ssh-keygen) and provide your the public key (ie .ssh/id_rsa.pub or .ssh/id_ed25519.pub) to the sftp-...
14
votes
Getting `sshfs` working on WSL or finding an alternative
So I have a workaround that you might like. I installed SFTP Net Drive 2017 and then remotely connected to the file system I wanted. I mapped it (via the GUI) as R:\. From WSL, you can then map R:\ ...
14
votes
Accepted
How do I connect to SFTP server with web browser?
SFTP and FTP are two completely different and incompatible protocols. Do not mix those two.
No major web browser supports SFTP (at least not without any addin).
The "third party" need to use ...
13
votes
Get file from remote over ssh, with simple "get file"?
If you can connect to the original client host via SSH, then you can use the scp command to copy the file. An example session could look something like this.
barry@earth:~$ ssh pi@raspberrypi
pi@...
12
votes
How to install public key in host windows server 2012
The public key must go into authorized_keys file (not just to some text file) in the .ssh subfolder of user's home directory.
The public key entry must have a correct format like:
ssh-rsa ...
12
votes
Accepted
Using sftp like scp
Since OpenSSH 8.7, scp can use SFTP protocol. Just add -s switch:
scp -s ./myfile myserver:/home/myfile
Since OpenSSH 9.0 the scp uses SFTP by default.
sftp command is indeed built around commands (...
11
votes
Accepted
sFTP using commercial certificate
None.
As you said, SFTP is SSH2-based. It is not the same as FTPS (FTP over TLS) and does not use X.509 certificates in any way. The server authentication in SSH2 is mostly based around "trust on ...
10
votes
No supported authentication methods available in FileZilla
I had similar issue error was Error: Disconnected: No supported authentication methods available (server sent: publickey)
Ans: Simply go to filezilla-Edit-settings-sftp-Add key file--add your ppk ...
10
votes
In sftp, how to set the default permission for all files in a folder?
I've spent considerable time searching for a more complete answer to this question. Configuring a different umask for sftp is well and good, but it is not a universal answer, since the umask will only ...
10
votes
Accepted
Getting `sshfs` working on WSL or finding an alternative
Since I asked this question, Microsoft has released WSL 2 in its Insiders Preview ring. Since this provides a full Linux kernel to WSL, no more workarounds are necessary to get SSHFS to work.
Update: ...
9
votes
Accepted
Copy file on SFTP to another directory without roundtrip
A core SFTP protocol does not support duplicating a remote file.
There's draft of the copy-file extension to the protocol, but that's supported by only few SFTP servers (ProFTPD mod_sftp and Bitvise ...
9
votes
Accepted
Command to copy client public key to Windows OpenSSH SFTP/SSH server authorized keys file
ssh-copy-id script works only against *nix servers (or servers with *nix emulation), as it internally executes some *nix shell commands on the server (like exec, sh, umask, rm, mkdir, tail, cat, etc).
...
9
votes
Get file from remote over ssh, with simple "get file"?
No, there isn't. SSH does not have a "client filesystem access" channel the way RDP does.
Though, there might be terminals that have built-in support for the ancient BBS file transfer ...
8
votes
Can /usr/bin/sftp resume file transfers?
You can use the option -a in the get command in sftp to resume a previously aborted download.
Example:
echo -e "lcd ~/localFolder\nget -ar *" | sftp [email protected]:/some/path
Alternatively ...
8
votes
Host key verification failed
First thing you can do is run sftp with option StrictHostKeyChecking set to "no".
sftp -o StrictHostKeyChecking=no -o port="port" -o IdentityFile="private_key_location" "username@remote_host"
This ...
8
votes
Accepted
How does an FTP client set file permissions on server?
Your colleague is right, in the sense that October 1985's RFC 959 doesn't seem to provide a command specifically designed for permission changes. RFC 959 does provide specifications of commands to ...
8
votes
Accepted
mac cPanel: "puttygen: error loading unrecognised cipher name"
The file is correct, but that's the "new" OpenSSH private key format introduced in version 6.5 (made default in 7.8). It is only supported by PuTTY starting with version 0.68.
Because your server ...
8
votes
How to import .ppk file in WinSCP?
Open Winscp
Go to Session window, fill the details with Host name Username and password
Click on Edit button, then it will highlight the Advanced button.
Click on that,
select SSH → Authentication on ...
8
votes
Accepted
How does SFTP key based authentication work? Difference between SSH and SFTP keys
There is no such thing as "SFTP key authentication", nor is there an "SFTP key" at all.
SFTP always uses standard SSH as the transport – the differences only begin after you've suc...
7
votes
Accepted
What can I do about a "500 SSH not understood" error?
That's not an SFTP server. That's an FTP server. While the names may be similar, those are two entirely different and unrelated protocols.
FTP is a plain line-based protocol.
FTPS is "regular" FTP ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sftp × 1024ssh × 411
linux × 277
ftp × 164
ubuntu × 86
openssh × 83
windows × 77
filezilla × 67
winscp × 67
permissions × 59
scp × 51
networking × 47
macos × 37
bash × 34
putty × 30
chroot × 27
file-transfer × 26
command-line × 22
unix × 22
sshd × 22
proxy × 21
amazon-web-services × 21
windows-10 × 20
debian × 20
security × 20