我从rsync中得到一个令人困惑的错误,我从网络搜索中找到的最初的东西(以及所有通常的chmod'ing)都没有解决它:
rsync: failed to set times on "/foo/bar": Operation not permitted (1)
rsync error: some files could not be transferred (code 23)
at /SourceCache/rsync/rsync-35.2/rsync/main.c(992) [sender=2.6.9]
Run Code Online (Sandbox Code Playgroud)
尽管有这样的错误,它似乎仍在工作,但摆脱它会很好.
通过Internet传输文件有哪些优点(或限制)?
(我知道两种协议的安全形式.我希望通过个人经验在性能,可靠性,文件大小限制等方面进行比较.)
我使用PuTTY登录了远程主机.
将文件从本地计算机传输到我在PuTTY上登录的计算机的命令是什么?
我正在尝试在 Windows 10 平台上使用腻子建立连接并传输文件。我已经验证 putty 中的默认端口是 22。当我在命令行中运行命令来连接和传输文件时,虽然我收到了上述错误。知道为什么会这样或我应该做什么吗?
我在Windows机器上运行putty客户端以成功连接到Linux机器.现在,我希望能够将Linux文件中的文件复制/home/ubuntu/myfile
到C:/Users/Anshul/Desktop
本地计算机上的路径下.Windows机器上的用户是anshul
.我在putty上给出以下命令,但它不起作用:
scp /home/ubuntu/myfile ip_address_of_windows_machine:C:/Users/Anshul/Desktop
Run Code Online (Sandbox Code Playgroud)
我认为Windows机器的路径是错误的.请帮忙,因为我已经在大量的论坛上猛烈抨击,但似乎没有一个为Windows服务器提供正确的路径.不建议像其他选项WinScp
我已经实现了简单的TCP服务器和TCP客户端类,可以将消息从客户端发送到服务器,消息将在服务器端转换为大写,但是如何实现从服务器到客户端的传输文件以及从客户端上传文件到服务器.以下代码是我所拥有的.
TCPClient.java
import java.io.*;
import java.net.*;
import java.util.Scanner;
class TCPClient {
public static void main(String args[]) throws Exception {
int filesize=6022386;
int bytesRead;
int current = 0;
String ipAdd="";
int portNum=0;
boolean goes=false;
if(goes==false){
System.out.println("please input the ip address of the file server");
Scanner scan=new Scanner(System.in);
ipAdd=scan.nextLine();
System.out.println("please input the port number of the file server");
Scanner scan1=new Scanner(System.in);
portNum=scan1.nextInt();
goes=true;
}
System.out.println("input done");
int timeCount=1;
while(goes==true){
//System.out.println("connection establishing");
String sentence="";
String modifiedSentence;
BufferedReader inFromUser = new BufferedReader(new InputStreamReader(
System.in)); …
Run Code Online (Sandbox Code Playgroud) 我希望能够将一些文件(html,php,jpg等)传输到我正在托管我的Web服务器的Amazon EC2实例.最简单或最有效的方法是什么?
我正在通过SFTP和FileZilla传输一个非常大的(35GB)文件.
现在转移完成了59.7%,但我一直收到这个错误,并且它没有改变这个数字几个小时.
Error: File transfer failed after transferring 1,048,576 bytes in 10 seconds
Status: Starting upload of C:\Files\static.sql.gz
Status: Retrieving directory listing...
Command: ls
Status: Listing directory /var/www/vhosts/site/httpdocs
Command: reput "C:\Files\static.sql.gz" "static.sql.gz"
Status: reput: restarting at file position 20450758656
Status: local:C:\Files\static.sql.gz => remote:/var/www/vhosts/site/httpdocs/static.sql.gz
Error: error while writing: failure
Run Code Online (Sandbox Code Playgroud)
为什么我一直收到这个错误?
这个scp命令有什么问题吗?
scp -C -i ./remoteServerKey.ppk -r /var/www/* root@192.168.0.15:/var/www
Run Code Online (Sandbox Code Playgroud)
我使用与putty相同的.ppk并输入相同的密码短语,但它要求我3次,而不是说连接被拒绝.我以为我之前使用它并且它起作用,但它不是atm.如果是错的,我该怎么办?
这是我的代码,它在远程服务器上检索文件的内容并显示为输出.
package sshexample;
import com.jcraft.jsch.*;
import java.io.*;
public class SSHexample
{
public static void main(String[] args)
{
String user = "user";
String password = "password";
String host = "192.168.100.103";
int port=22;
String remoteFile="sample.txt";
try
{
JSch jsch = new JSch();
Session session = jsch.getSession(user, host, port);
session.setPassword(password);
session.setConfig("StrictHostKeyChecking", "no");
System.out.println("Establishing Connection...");
session.connect();
System.out.println("Connection established.");
System.out.println("Creating SFTP Channel.");
ChannelSftp sftpChannel = (ChannelSftp) session.openChannel("sftp");
sftpChannel.connect();
System.out.println("SFTP Channel created.");
InputStream out= null;
out= sftpChannel.get(remoteFile);
BufferedReader br = new BufferedReader(new InputStreamReader(out));
String line;
while …
Run Code Online (Sandbox Code Playgroud)