sftp

WordPress Editor not updating files: Unable to communicate back with site to check for fatal errors

南笙酒味 提交于 2019-12-22 12:17:21
问题 Hello fellow developers and problem-solvers. I've run into an issue with updating the header.php file in a WordPress website. Firstly, I tried updating the file manually through C-Panel -> File Manager. The code appears to stay in the file, but when you view the page source in incognito mode and different web browsers the code doesn't render. It's not a server problem, I already contacted the server support team and there aren't any error logs being reported by MySQL. There doesn't appear to

How to check for read permission using JSch with SFTP protocol?

折月煮酒 提交于 2019-12-22 10:57:44
问题 I know there is getPermissions() method but I don't know how to use it. How can I check using JSch, if user can read files? 回答1: First, you should generally ask a functional question (what do you want to achive), to get an useful answer. You ask for an implementation/technical detail, hence my possibly useless technical answer: SftpATTRS.getPermissions() returns numerical representation of *nix permissions: https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation It's on its own

SSIS SFTP : How to resolve “Unable to Upload: Socket read operation has timed out”?

ぐ巨炮叔叔 提交于 2019-12-22 10:45:16
问题 Using the SSIS SFTP Extension and configured everything correctly. However, I'm getting the following error any time I execute the SFTP task: Error: Error: Unable to Upload: Socket read operation has timed out at SSIS.Extensions.SFTP.SFTPConnection.ThrowException(String Message, Exception ex) at SSIS.Extensions.SFTP.SFTPConnection.UploadFiles(List`1 fileList) at SSIS.Extensions.SFTPTask.SFTPTask.Execute(Connections connections, VariableDispenser variableDispenser, IDTSComponentEvents

nginx + WordPress: Proper user/file permissions for SFTP + auto update?

三世轮回 提交于 2019-12-22 09:39:56
问题 I used this guide to install nginx and WordPress on a Ubuntu VPS. The guide instructs you to set the owner of the /var/www directory to nginx:nginx . When I use SFTP, I log in with the name ubuntu , but this name doesn't have permission to write any of the files that nginx owns. My question is... what would be the ideal way to do the following: To grant user ubuntu proper permission to write to files in /var/www via SFTP Keep nginx the owner of /var/www so WordPress can continue to auto

What is the difference between SftpClient.UploadFile and SftpClient.WriteAllBytes?

妖精的绣舞 提交于 2019-12-22 09:04:20
问题 I am observing some strange behaviour when I use SSH.NET to transfer files with SFTP. I am using SFTP to transfer XML files to another service (which I don't control) for processing. If I use SftpClient.WriteAllBytes the service complains the file is not valid XML. If I first write to a temporary file and then use SftpClient.UploadFile the transfer is successful. What's happening? Using .WriteAllBytes : public void Send(string remoteFilePath, byte[] contents) { using(var client = new

Facading Azure storage blob with sFTP service

别说谁变了你拦得住时间么 提交于 2019-12-22 05:04:49
问题 We have a requirement to create large (1G-16G) row data reports compress and encrypt them. Our customers will consume those reports over sFTP. We are replacing an existing implementation so our customer should get this change transparently. Azure Blob service does not expose sFTP service so we will need some way to facade it with sFTP service. Something similar to FTP to Azure Blob Storage Bridge based on worker role. The worker role will expose sFTP endpoint to the outside world. We will

Set umask for a sftp account?

筅森魡賤 提交于 2019-12-22 05:04:17
问题 Could anyone tell me how to set the umask for a single sftp user? Worth mentioning is a IBM AIX ... Adding umask 002 to that user's .profile didn't work... (the goal is that this user files are accesible to people from the same group). I've seen somehowto's around editing the sftpd configs, though I want to set it for one user only, so I expected to find something that didn't need root access. thanks! f. 回答1: The user can set this up themselves without the involvement of root, either from the

SSH.NET Upload whole folder

落爺英雄遲暮 提交于 2019-12-22 04:54:09
问题 I use SSH.NET in C# 2015. With this method I can upload a file to my SFTP server. public void upload() { const int port = 22; const string host = "*****"; const string username = "*****"; const string password = "*****"; const string workingdirectory = "*****"; string uploadfolder = @"C:\test\file.txt"; Console.WriteLine("Creating client and connecting"); using (var client = new SftpClient(host, port, username, password)) { client.Connect(); Console.WriteLine("Connected to {0}", host); client

Cloning a Git repository over SFTP

Deadly 提交于 2019-12-22 04:27:08
问题 I get a fatal error every time I try to clone my Git repository: I run this: $ git clone sftp://foo@bar.ca/git/foobar.git and I get this: fatal: Unable to find remote helper for 'sftp' I'm trying to clone from one server to another, both of which use SSH authentication. Is there something I need to install to enable this SFTP remote helper? Thanks in advance for any advice you can offer! 回答1: To make jdi 's comment from above more explicit: There is no sftp remote helper in Git. Available

How To Extract SFTP SSH Key From Key Cache in FileZilla FTP Client

萝らか妹 提交于 2019-12-22 01:52:15
问题 I have connected to a server via SFTP using FileZilla and accepted adding the server's SSH key to the key cache in FileZilla. How can I extract this cached key to a keyfile so that may use it through other SFTP applications that require a keyfile be made available? I have not been able to find anything in the FileZilla documentation related to this. 回答1: If you use the standard openssh console client (cygwin or from linux), host keys are stored, one-per-line, in ~/.ssh/known_hosts. From there