LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2006, 05:42 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
Question Need a login script


As I am no script writer I would like to get a simple script going for ssh login.

normally I just type ssh -p myport myserver.mydomain.com

and enter username and password.

Is there anyway to automate this, my main issue is automatically providing the password.

Thanks
 
Old 01-04-2006, 05:49 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
why don't you look into ssh-agent?
 
Old 01-04-2006, 07:28 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I recommend learning to write scripts. I have learned more form this than form any other source.
Good (free) publication: "Bash guide for Beginners", by Machtelt Garrels. It is on the Linux Documentation Project site.
 
Old 01-05-2006, 05:20 PM   #4
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
Cheers, certainly want to get familiar with writing scripts, and php, and this and that.

Lack of time makes you search for quick fixes I'm afraid
 
Old 01-05-2006, 05:24 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Read this ...

http://www.linuxquestions.org/linux/...ation_with_ssh



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 11:09 AM
Login script unclejessie77 Programming 5 02-24-2005 01:30 PM
Login Script meenalborkar Red Hat 1 02-18-2005 06:37 AM
login-script thermite_1033 Linux - Security 2 09-28-2004 05:54 PM
login script oneringsol Linux - Newbie 2 11-03-2002 09:45 PM


All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration