Results 1 to 4 of 4
  1. #1
    running multiple ssh sessions

    Member Since
    Jul 07, 2011
    Posts
    3
    running multiple ssh sessions
    Hello,
    I just got my first ever Mac. So being a windows guru I use Putty to access all of my machines at work. On my mac I see where I can individually add a new remote connection so that I can ssh into each one of my machines. But I do not know where the file is located with these configurations so that I can write a script and kick off simultaneous ssh connections without having to manually open each one. I have already generated a key and dropped so that I do not have to enter my password for each machine every time. Does anyone know where the file is located or an easy script that will open up all of my connections at one time?

    Thanks in advance!

  2. #2
    running multiple ssh sessions

    Member Since
    Jul 07, 2011
    Posts
    3
    Ok, so for those who care who are reading this we found a temp fix until I can improve it and make it more sufficient. Its basically a line in the shell with a mix of perl and applescript. It managed to do what I needed. But if anyone has any other ideas other than mixing some languages together I am still open ears.

  3. #3
    running multiple ssh sessions
    Lifeisabeach's Avatar
    Member Since
    Sep 30, 2007
    Location
    The Republic of Neptune
    Posts
    7,637
    Quote Originally Posted by zrogers911 View Post
    Hello,
    I just got my first ever Mac. So being a windows guru I use Putty to access all of my machines at work. On my mac I see where I can individually add a new remote connection so that I can ssh into each one of my machines. But I do not know where the file is located with these configurations so that I can write a script and kick off simultaneous ssh connections without having to manually open each one. I have already generated a key and dropped so that I do not have to enter my password for each machine every time. Does anyone know where the file is located or an easy script that will open up all of my connections at one time?
    I'm not well experienced with SSH, but here's a tutorial on using it in OS X. The location for the key should be a hidden folder in your Home directory titled .ssh.

    SSH in Mac OS X

  4. #4
    running multiple ssh sessions

    Member Since
    Jul 07, 2011
    Posts
    3
    Thx for the link. That did not quite help though for what I was looking for. Basically for me to get what I needed to work in the shell this is what I used.

    for i in `perl -le '$i=0; print $_foreach ($i .. $;+XX);'`; do echo $i ; oasascript -e 'tell application "Terminal" to do script "ssh root@xx.xx.xx.'$i'" '; done


    That basically got what I needed. Hope this helps for anyone else who is looking for the same thing.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. running applications in SSH
    By BenBougher in forum OS X - Operating System
    Replies: 2
    Last Post: 06-18-2008, 07:11 PM
  2. Can multiple users be logged into there own sessions on the same Mac?
    By toughnut in forum OS X - Operating System
    Replies: 1
    Last Post: 02-19-2008, 10:40 PM
  3. Multiple MSN sessions?
    By oka in forum Switcher Hangout
    Replies: 3
    Last Post: 07-23-2007, 11:34 PM
  4. Multiple itunes sessions
    By moguzsimsaroglu in forum iPod Hardware and Accessories
    Replies: 3
    Last Post: 05-30-2007, 03:37 PM
  5. how to burn multiple sessions on cd-r?
    By Computer.Geek in forum Apple Notebooks
    Replies: 2
    Last Post: 10-07-2005, 10:49 PM

Posting Permissions

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