ref: 03c44c44b014d29fc62418d6b3cf6ee920c1b6df
parent: b7103d1517e9e92b3c85b98d8ef498e41befdbcd
author: cinap_lenrek <[email protected]>
date: Fri Jan 13 14:54:42 EST 2017
rx: remove ssh code
--- a/sys/src/cmd/rx.c
+++ b/sys/src/cmd/rx.c
@@ -17,7 +17,6 @@
char *buildargs(char*[]);
int send(int);
void error(char*, char*);
-void sshexec(char*, char*);
void
usage(void)
@@ -71,14 +70,6 @@
rex(fd, args);
close(fd);
- /* if there's an ssh port, try that */
- fd = call("tcp", host, "ssh", &addr);
- if(fd >= 0){
- close(fd);
- sshexec(host, args);
- /* falls through if no ssh */
- }
-
/* specific attempts */
fd = call("tcp", host, "shell", &addr);
if(fd >= 0)
@@ -214,27 +205,6 @@
sleep(250);
postnote(PNPROC, kid, note);/**/
exits(0);
-}
-
-void
-sshexec(char *host, char *cmd)
-{
- char *argv[10];
- int n;
-
- n = 0;
- argv[n++] = "ssh";
- argv[n++] = "-iCm";
- if(!returns)
- argv[n++] = "-r";
- if(ruser){
- argv[n++] = "-l";
- argv[n++] = ruser;
- }
- argv[n++] = host;
- argv[n++] = cmd;
- argv[n] = 0;
- exec("/bin/ssh", argv);
}
int