Results 1 to 2 of 2
is there a way from the shell to issue SSH connection and transfer the keys? & is there a way to send ICMP packet (with specific type) and intercept the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-14-2006 #1
SSH and icmp
& is there a way to send ICMP packet (with specific type) and intercept the answer back?
- 01-14-2006 #2
- Join Date
- Oct 2001
- Täby, Sweden
I moved this post to a new thread. There's no benefit from reusing old threads for unrelated issues.
Anyway, there is no way built into bash to do what you ask (nor should there be -- bash is basically a program launcher, and does very little by itself).
As for SSH, is there any reason why you can't just run the ordinary ssh client to do the job?
As for ICMP, as a normal user, you couldn't do it even if bash had built in functions for ICMP, since ICMP requires root access. Probably the easiest way to do ICMP calls is to just write a small C program to do the work. If you need a sample, you can look at the source of the ICMP host name tool suite I've written: