Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-04-2006, 04:42 PM   #1
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

and enter username and password.

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

Old 01-04-2006, 04:49 PM   #2
Senior Member
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
why don't you look into ssh-agent?
Old 01-04-2006, 06:28 PM   #3
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, 04:20 PM   #4
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Read this ...



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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 AM.

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