|
#1
| |||
| |||
| 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] |
|
#2
| |||
| |||
| A shell script/alias? Not sure though |
|
#3
| ||||
| ||||
| 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 |
|
#4
| |||
| |||
| 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 username assword@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] |
|
#5
| ||||
| ||||
| Quote:
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.'" |
|
#6
| |||
| |||
| .netrc ? Ive never used it with ssh though so Im not sure, check man pages
__________________ powerbook G4 15" 1.25ghz - 1024mb - 80gb ~ ipod mini |
|
#7
| ||||
| ||||
| Quote:
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.'" |
|
#8
| |||
| |||
| 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] |