View Full Version : SSH on Mac
Dynash
July 6th, 2009, 11:20
How do you work SSH in Terminal to use a different port?
I know the switch is -p but I've tried;
ssh root antsta.com -p @@ but it doesn't work correctly. It's trying to connect to the default port, 22.
bariteau
July 6th, 2009, 12:25
have you tried
site.com:xx
Dynash
July 6th, 2009, 12:34
have you tried
First thing I tried, still tries to use 22.
Patrick
July 6th, 2009, 13:39
Maybe try:
ssh -p yourport root@antsta.com
It's been a while since I used a Mac / Linux on a Home PC.
bariteau
July 6th, 2009, 16:50
ssh root antsta.com -p @@
just noticed that it seems like your missing a @, it should be ssh root@antsta.com -p xx
not sure if it's a typo but that might be the issue if you're having problems
iBrightDev
July 7th, 2009, 00:08
# In the terminal window enter the following: ssh username@domainname.com
* username: enter your username
* domainname.com: enter your domain name
# Press the Enter key.
# Enter your password when prompted.
# Press the Enter key.
if you need to specify port...
# In the terminal window enter the following: ssh -p 22 username@domainname.com
* 22: the port you want to connect to
* username: enter your username
* domainname.com: enter your domain name
# Press the Enter key.
# Enter your password when prompted.
# Press the Enter key.
For a list of ssh options enter:
man ssh
Dynash
July 7th, 2009, 05:06
I've did them both, they didn't work for me :l I even checked man ssh before I posted - that's how I got it in the first place :p
@bariteau - You can do it root@antsta.com or root{space}antsta.com
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.