LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 04:49 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

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

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 04: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, 04:24 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Read this ...

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



Cheers,
Tink
 
  


Reply



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 10:09 AM
Login script unclejessie77 Programming 5 02-24-2005 12:30 PM
Login Script meenalborkar Red Hat 1 02-18-2005 05:37 AM
login-script thermite_1033 Linux - Security 2 09-28-2004 04:54 PM
login script oneringsol Linux - Newbie 2 11-03-2002 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 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
Open Source Consulting | Domain Registration