Find the answer to your Linux question:
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.
  1. #1
    Just Joined! kinitsu's Avatar
    Join Date
    Jan 2006
    Posts
    1

    SSH and icmp


    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 answer back?
    10x

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    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:
    http://svn.dolda2000.com/svn/r/src/icmp-dn/src/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •