using script to logon to unix??
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: using script to logon to unix??

  1. #1
    Join Date
    Oct 2000
    Posts
    144

    Question

    Hi everyone,
    I'm currently writing script from NT. I want to telnet to unix and logon. My script
    below is:
    host telnet (hostname)
    (username)/(password)

    It does not logon automatically. I'm not familiar with Unix. Can anyone letting me
    know what command should I input in my script in order to logon automatically.



  2. #2
    Join Date
    Mar 2001
    Posts
    635
    Hi

    You cannot write a script to pass username and password to a Unix machine as parameters from NT only parameter you can pass will be the hostname

    Regards
    Santosh

  3. #3
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Always try to use the ssh (secured shell) to connect to your remote unix server, as it is allways possible to compromise your username and password on the network when you use the telnet.

    ssh1
    ssh username/passwd@hostname.domain-name


    If you are to use the ssh2 , then it would be

    ssh username/passwd@hostname.domain-name -p 2222

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


Posting Permissions

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


Click Here to Expand Forum to Full Width