PDA

View Full Version : I need help with SSH on my mac


ellabella
Sun 10th Feb '08, 8:23pm
I'm totally confused with all the instructions in the manual for connecting to ssh. I want to back-up my database and put it on a new database.

I'm on a mac and when I go to teminal this is the command line I get

"my-name-power-mqc-g5:~ myname$

what do I do after that?

hjmaier
Sun 10th Feb '08, 9:21pm
I am not sure what you mean. Do you want to know how to connect to your Server?

You can use this command: ssh myusername@mydomain.com -p <sshport>

<sshport> is the ssh port of your server, probably it is 22.

Best regards
hj

Lynne
Sun 10th Feb '08, 9:41pm
Open Terminal and go to Shell > New Remote connection. Select SSH then input the User and the IP and hit Connect. It should open a new window for you and ask for your password.

Floris
Sun 10th Feb '08, 10:51pm
This is what I do

I click on Terminal.app and let it load
Then I type ssh -l name host -p port

For example:
host: vbulletin-fans.com
port: 9494
name: vbfans

Meaning: your name is the login name, just like FTP login name.
port is optional , you can leave -p 9494 out if you dont have a customized port.
host is the host you're trying to connect to.

So:

ssh -l vbfans vbulletin-fans.com -p 9494
it will then prompt for the pass, you provide it
and you're in.

it might ask for a signature confirmation, select yes.- then it will ask for a pass.

port not changed, it's default?

ssh -l vbfans vbulletin-fans.com

need to login as root? login as normal user first, then once connected
sudo su
and type the root's pass

Doubt about who you are? Type : whoami and the linux box will tell you

~: whoami
vbfans

#: whoami
root

Type : exit
to leave the session, if you sudo'd up first, type exit again ..


SUMMERY:

ssh -l login host -p port#