Yes, that is correct.


Jeremy Bopp-3 wrote:
> 
> On 9/2/2010 2:10 PM, PaulHR wrote:
>> 
>> I want to create script files that are not bound to my user id.  I want
>> to
>> create over 20 different scripts files, one for each server I manage.  I
>> have uploaded keys to each server.  So all I should have to is enter is
>> the
>> ssh command.... 
>> 
>> 
>> I have put in a file called MyOpenUp.bat the following... 
>> 
>> ++++++++++++++++++++++++++++++++++++++++
>> 
>> ssh {myserve...@myserverhostname}
>> 
>> ++++++++++++++++++++++++++++++++++++++++
>> 
>> 
>> I have put that command in a file called MyOpenUp.init
>> 
>> 
>> I have created a MyOpenUp.bat file with the following....
>> 
>> ++++++++++++++++++++++++++++++++++++++++
>> 
>> @echo off
>> 
>> 
>> C:
>> 
>> chdir C:\cygwin\bin
>> 
>> bash --init-file MyOpenUp.init -i -l
>> 
>> ++++++++++++++++++++++++++++++++++++++++
>> 
>> 
>> While the shell opens up all I get is....
>> 
>> cygwi...@localhostname ~
>> 
>> $
> 
> It looks like you are trying to effectively create one shortcut per
> remote host which you can run and automatically have it open an ssh
> session to that host using a particular user specific to that host.  Is
> that a correct assessment?
> 
> -Jeremy
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-get-a-script-file-to-use-bash-and-ssh-tp29608117p29608244.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to