SSH connection using another port in OS X? [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to connect through the terminal in OS X to my Linux server with SSH - But how do i connect if i changed the SSH port to, lets say, 5000 instead os 22?

Use the command line option -p for ssh:
ssh -p 5000 host

Related

how to connect to an ftp server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
How do I connect to an FTP server using a command prompt?
The ftp site I am trying to connect to is
ftp.bom.gov.au/anon/gen/
I used to be able to type in ftp ftp.bom.gov.au/anon/gen/ in the command prompt and it would challange me for a username and password
but now it says unknown host.
I can still get to it from a browser
ftp://ftp.bom.gov.au/anon/gen/
Is there something I am missing?
Thanks
You can't specify the path in the command. You should use ftp ftp.bom.gov.au and then cd /anon/gen/ to change the path.

SSH not working after OSX 10.10.4 upgrade (vagrant) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I upgraded to 10.10.4 this morning and after I had upgraded, when I attempted to SSH into a local Vagrant dev box, it resulted in access denied too many authentication attempts.
Run ssh-add -D to delete all your keys from the SSH agent.
Then add them again using ssh-add -k path_to_to_key
I had the same issue with Vagrant and this fixed the problem.

How do I open a specific port on OS X Yosemite from the command line? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I cannot seem to find anywhere how to open a specific port on OS X Yosemite. I understand that I can use 'Little Snitch' in order to open a port, but I would love to do it from the command line.
This is for a Firewall port.

Port and protocol used for a Remote Desktop Connection (on Win 7) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How to know which port and which protocol is being used when a Remote Desktop Connection is established on Win7?
It's a proprietary Windows protocol ("Remote Desktop Protocol"), using TCP port 3389, and UDP port 3389. Wikipedia entry here.

Need a script to open ssh connections [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
My entirely new to MAC OS.
I am using MAC Terminal to connect to Linux servers (using SSH)
Is there a way to write a .command file to connect to the Linux servers, just by executing the .bat file from desktop?
Look at ssh client configuration and key-based authentication (man ssh and man ssh_config). You can configure all that so the command reduces to ssh hostname without writing any shellscript code. You can even assign a short name to a host.
For example (in ~/.ssh/config):
host abc
hostname remotehost.domain.tld
identityfile ~/.ssh/abc.dsa
user myuserid
Assuming you've generated and uploaded the corresponding public key, you can connect with the command
ssh abc

Resources