How to specifying different ports for multiple host in cssh?
I am using cssh
to telnet into multiple hosts at the same time.
I have changed the ssh=/usr/bin/telnet
to point to the telnet program.
The problem I am facing is that each host uses different port for telnet.
I tried the following format but it did not work
cssh host1:100 host2:200 host3:300
How do I specify different port numbers for the different host?
telnet
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am using cssh
to telnet into multiple hosts at the same time.
I have changed the ssh=/usr/bin/telnet
to point to the telnet program.
The problem I am facing is that each host uses different port for telnet.
I tried the following format but it did not work
cssh host1:100 host2:200 host3:300
How do I specify different port numbers for the different host?
telnet
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am using cssh
to telnet into multiple hosts at the same time.
I have changed the ssh=/usr/bin/telnet
to point to the telnet program.
The problem I am facing is that each host uses different port for telnet.
I tried the following format but it did not work
cssh host1:100 host2:200 host3:300
How do I specify different port numbers for the different host?
telnet
I am using cssh
to telnet into multiple hosts at the same time.
I have changed the ssh=/usr/bin/telnet
to point to the telnet program.
The problem I am facing is that each host uses different port for telnet.
I tried the following format but it did not work
cssh host1:100 host2:200 host3:300
How do I specify different port numbers for the different host?
telnet
telnet
edited Feb 4 '14 at 10:55
Timo
4,7501826
4,7501826
asked Feb 3 '14 at 11:30
ManojManoj
15518
15518
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
First off why are you creating an alias for ssh to point to telnet? I believe you can just use ctel as described below in the man page for cssh:
Connections are opened via ssh so a correctly installed and configured
ssh installation is required. If, however, the program is called by
"crsh" then the rsh protocol is used (and the communications channel
is insecure), or by "ctel" then telnet is used.
Here is the syntax for it: ctel [options] [<server>[:port]|<tag>] [...]
So you should be able to get it to work by using:
ctel host1:100 host2:200 host3:300
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f112283%2fhow-to-specifying-different-ports-for-multiple-host-in-cssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First off why are you creating an alias for ssh to point to telnet? I believe you can just use ctel as described below in the man page for cssh:
Connections are opened via ssh so a correctly installed and configured
ssh installation is required. If, however, the program is called by
"crsh" then the rsh protocol is used (and the communications channel
is insecure), or by "ctel" then telnet is used.
Here is the syntax for it: ctel [options] [<server>[:port]|<tag>] [...]
So you should be able to get it to work by using:
ctel host1:100 host2:200 host3:300
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
add a comment |
First off why are you creating an alias for ssh to point to telnet? I believe you can just use ctel as described below in the man page for cssh:
Connections are opened via ssh so a correctly installed and configured
ssh installation is required. If, however, the program is called by
"crsh" then the rsh protocol is used (and the communications channel
is insecure), or by "ctel" then telnet is used.
Here is the syntax for it: ctel [options] [<server>[:port]|<tag>] [...]
So you should be able to get it to work by using:
ctel host1:100 host2:200 host3:300
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
add a comment |
First off why are you creating an alias for ssh to point to telnet? I believe you can just use ctel as described below in the man page for cssh:
Connections are opened via ssh so a correctly installed and configured
ssh installation is required. If, however, the program is called by
"crsh" then the rsh protocol is used (and the communications channel
is insecure), or by "ctel" then telnet is used.
Here is the syntax for it: ctel [options] [<server>[:port]|<tag>] [...]
So you should be able to get it to work by using:
ctel host1:100 host2:200 host3:300
First off why are you creating an alias for ssh to point to telnet? I believe you can just use ctel as described below in the man page for cssh:
Connections are opened via ssh so a correctly installed and configured
ssh installation is required. If, however, the program is called by
"crsh" then the rsh protocol is used (and the communications channel
is insecure), or by "ctel" then telnet is used.
Here is the syntax for it: ctel [options] [<server>[:port]|<tag>] [...]
So you should be able to get it to work by using:
ctel host1:100 host2:200 host3:300
answered Feb 3 '14 at 13:57
KentgravKentgrav
8317
8317
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
add a comment |
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
I tried after changing the value of "ssh" in .csshrc, but the following error is thrown when specifying the port: Testing comms - running command: /usr/bin/telnet -p 23 x.x.x.x echo Working /usr/bin/telnet: invalid option -- p Looks like ctel is trying to pass -p option to telnet which is not valid.
– Manoj
Feb 4 '14 at 9:01
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
When I tried creating a link to cssh from ctel, without editing the .csshrc file, the command is still trying to invoke ssh : /usr/bin/ssh -x -o ConnectTimeout=10 -p 23 x.x.x.x
– Manoj
Feb 4 '14 at 9:04
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
Looks like it was a bug fixed in later versions of cssh. I am using RHEL 5.8 and find no packages with the fix. I am not sure how to build one myself.
– Manoj
Feb 4 '14 at 9:32
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
You could just do the same thing with a simple bash script. Make a list of Hosts on the network then: For i in LIST; do telnet HOST1 echo Working done
– Kentgrav
Feb 7 '14 at 2:09
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f112283%2fhow-to-specifying-different-ports-for-multiple-host-in-cssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown