使用ftp连接到服务器

时间:2017-05-09 13:56:49

标签: shell

我想连接到一个远程服务器,我想从同一个文件中获取一些文件。我怎么能用ftp(或sftp)做到这一点? 我不想使用除了putty之外的任何软件。

1 个答案:

答案 0 :(得分:0)

Putty通常附带pscp工具,因此您可以使用它来通过SSH复制文件:

var request = require('request');
var querystring = require('querystring');

var seconds = ROB_8_StopSeconds-ROB_8_StartSeconds;
var myquery2 = querystring.stringify({
			update: "PREFIX test:<http://www.semanticweb.org/muhammad/ontologies/2017/2/untitled-ontology-14#> insert {[] test:Actual_Production_Time ?s; test:hasValue_ROB1 ?p; test:hasTime ?now.} where {values (?s ?p ) {(test:Actual_Production_Time 2000)} bind (now() as ?now)}"
			});

request.post({headers: {'content-type': 'application/x-www-form-urlencoded'},
				url: 'http://localhost:3030/DS-1/?' + myquery2},
        function(error, response, body) {
				if (!error && response.statusCode == 200) {
					console.log('successful update');
					//console.log(body);
				} else {
					console.log(response.statusCode)
					console.warn(error);
				}
			});