LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-04-2003, 11:00 AM   #1
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Rep: Reputation: 20
Help with Linux Server Hacks book: Turbo-mode SSH logins


OUTSTANDING BOOK if you guys haven't read it yet!!

However, I have a question.

pg 141 in the SSH chapter, with the ln -s ssh-to server1 command...

Works GREAT -if- the local user and the remote users are the same name. Otherwise it doesn't work.

e.g. I can't be logged in as tobe on server a, and then log in as othername on server b using this ssh-to trick.

Surely someone has found a solution?
 
Old 12-04-2003, 12:11 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Did you try specifying the user name like:

ssh username@server1
 
Old 12-19-2003, 10:36 PM   #3
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Original Poster
Rep: Reputation: 20
That DOES work.... however-

The shortcut that this page in this book was talking about a script that automatically executes

"ssh username@server1"

when you type just: "server1"

Doesn't work when your local username is different than remote username. But if it happens to be, it works SWEET.

It's a short one line script from that book. I can't remember exactly what it says, as I'm not at my linux machine :P

-T
 
Old 12-20-2003, 12:42 PM   #4
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
Well you can do this another way. Just create aliases in your .bashrc (or whatever file sets aliases for your shell.)

examples:
alias server1="ssh userA@server1.com"
alias server2="ssh userB@server2.com"

I have about four of these aliases. Instead of 'server1' I just use the first letter of the server's name. They are all for different usernames.
 
Old 12-21-2003, 11:39 AM   #5
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Original Poster
Rep: Reputation: 20
Dang it. The answer's always right in front of me. an Alias. d'0h.

Thanks.. That'll work just fine!

T
 
  


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
SSH connection in graphical mode (X-Server?) max2004 Linux - Networking 12 01-25-2012 05:19 AM
cant't kill old logins on linux server cayer Linux - Newbie 2 11-23-2005 09:40 AM
How do i monitor SSH logins? gtwilliams Linux - Security 5 06-08-2005 10:43 PM
Restricting SSH logins. bullium Linux - Security 3 05-10-2005 01:15 AM
Need help using Webmin to tell SSH to allow logins Xolo Linux - Security 9 11-22-2004 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:50 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