image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old January 19th, 2004, 02:27 PM
Registered User
 
Join Date: Sep 2003
Posts: 374
Thanks: 0
Thanked 0 Times in 0 Posts
freaky is on a distinguished road
Terminal Question

I was wondering if there's anyway to save the login information for a server in Terminal so I can just click the server name and it will automatically log in with the username/password. I am currently just opening a new shell and typing ssh domain.com the entering my login name and password. When I used Winblows, I used SecureCRT which had this feature so I'm hoping Terminal has something similar.
__________________
Mac Pro [2 GHz Quad Xeon, 3 GB RAM, 3 x 250 GB drives]
MacBook [2 GHz Intel Core 2 Duo, 2 GB RAM, 80 GB drive]
Reply With Quote
  #2  
Old January 19th, 2004, 03:32 PM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
csyria is on a distinguished road
A shell script/alias? Not sure though
Reply With Quote
  #3  
Old January 20th, 2004, 01:47 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
yeah, you could make an alias like:
alias ssfoo=ssh someuser@foo.bar.baz

put that line in your .bashrc, and then in any new terminal sessions, you'll just have to type ssfoo to get the effect of the shortcut.

Or, you could save a .term file (save as in file menu), and give a specific command to execute, like "/bin/ssh user@foo.bar.baz". Save that on your desktop, and then just double-click it to open a new terminal window and connect automatically.

Or, I just noticed this, it seems new in 10.3's terminal - there's an option in the file menu, connect to server. Play around with that, see what shortcut info you can save there. I'm probably going to play around with it as well...
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #4  
Old January 20th, 2004, 12:23 PM
Registered User
 
Join Date: Sep 2003
Posts: 374
Thanks: 0
Thanked 0 Times in 0 Posts
freaky is on a distinguished road
Is there anyway that I could include the password so when I either type in the alias or click on the link, it will automatically log me in without asking for a password? Maybe something like usernameassword@site.com?
__________________
Mac Pro [2 GHz Quad Xeon, 3 GB RAM, 3 x 250 GB drives]
MacBook [2 GHz Intel Core 2 Duo, 2 GB RAM, 80 GB drive]
Reply With Quote
  #5  
Old January 20th, 2004, 02:15 PM
dafuser's Avatar
Land of Confusion
 
Join Date: Nov 2002
Location: Texas
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
dafuser is on a distinguished road
Quote:
Originally Posted by freaky
I was wondering if there's anyway to save the login information for a server in Terminal so I can just click the server name and it will automatically log in with the username/password. I am currently just opening a new shell and typing ssh domain.com the entering my login name and password. When I used Winblows, I used SecureCRT which had this feature so I'm hoping Terminal has something similar.
use iTerm http://iterm.sourceforge.net/ which will allow you to create multiple bookmarks for different logins to different machines. Configure each bookmark to login using ssh by using the -e /usr/bin/ssh switch.

Create public/private keys for SSH and move your public keys to the remote servers.

You can then SSH to the remote server and not be asked for your password/pass phase. Just open the desired bookmark which points to the desired remote machine and you're logged in.
__________________
--
Dafuser

"I picked up a Magic 8-Ball the other day and it said 'Outlook not so good'. I said 'Sure, but Microsoft still ships it.'"
Reply With Quote
  #6  
Old January 21st, 2004, 02:23 AM
captain obvious
 
Join Date: Apr 2002
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
fbp_ is on a distinguished road
.netrc ?

Ive never used it with ssh though so Im not sure, check man pages
__________________
powerbook G4 15" 1.25ghz - 1024mb - 80gb ~ ipod mini
Reply With Quote
  #7  
Old January 21st, 2004, 03:29 PM
dafuser's Avatar
Land of Confusion
 
Join Date: Nov 2002
Location: Texas
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
dafuser is on a distinguished road
Quote:
Originally Posted by fbp_
.netrc ?

Ive never used it with ssh though so Im not sure, check man pages
Not used with SSH, why you ask?

Can you say unsecure? I thought you could
__________________
--
Dafuser

"I picked up a Magic 8-Ball the other day and it said 'Outlook not so good'. I said 'Sure, but Microsoft still ships it.'"
Reply With Quote
  #8  
Old January 25th, 2004, 11:05 AM
Registered User
 
Join Date: Sep 2003
Posts: 374
Thanks: 0
Thanked 0 Times in 0 Posts
freaky is on a distinguished road
I tried messing around with the Connect To Server section in Terminal and the only thing I could get it to do was select the name I would log in with and the hostname. If anybody knows anyway that I can make it so I can log in without having to type my hard to remember password each time in Terminal (besides using iTerm) I'd appreciate it.
__________________
Mac Pro [2 GHz Quad Xeon, 3 GB RAM, 3 x 250 GB drives]
MacBook [2 GHz Intel Core 2 Duo, 2 GB RAM, 80 GB drive]
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:19 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.