sftp_cmd_mv
},
{
- "put", TRUE, "upload a file from your local machine to the server",
- " <filename> [ <remote-filename> ]\n"
- " Uploads a file to the server and stores it there under\n"
- " the same name, or under a different one if you supply the\n"
- " argument <remote-filename>.\n",
- sftp_cmd_put
- },
- {
"open", TRUE, "connect to a host",
" [<user>@]<hostname>\n"
" Establishes an SFTP connection to a given host. Only usable\n"
sftp_cmd_open
},
{
+ "put", TRUE, "upload a file from your local machine to the server",
+ " <filename> [ <remote-filename> ]\n"
+ " Uploads a file to the server and stores it there under\n"
+ " the same name, or under a different one if you supply the\n"
+ " argument <remote-filename>.\n",
+ sftp_cmd_put
+ },
+ {
"pwd", TRUE, "print your remote working directory",
"\n"
" Print the current remote working directory for your SFTP session.\n",
vsprintf(str + strlen(str), fmt, ap);
va_end(ap);
strcat(str, "\n");
- fputs(stderr, str);
+ fputs(str, stderr);
exit(1);
}
vsprintf(str + strlen(str), fmt, ap);
va_end(ap);
strcat(str, "\n");
- fputs(stderr, str);
+ fputs(str, stderr);
exit(1);
}