ANS Documentation

Improve This Doc
  • Cloud
  • Desktop and Office Solutions
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • Git >
  • Git

Git¶

Install Git¶

You can install git with the following command:

~]# yum install git

Updating Git¶

You can update git with the following command:

~]# yum update git

Version Check¶

You can check the version of git installed with the following command:

~]# git --version
git version 1.8.3.1

SSH Port¶

If the server has port 2020 defined as the default outbound SSH port:

~]# grep Port /etc/ssh/ssh_config
   Port 2020

You will need to add a host name match to change the port to 22 in the file /etc/ssh/ssh_config:

Host github.com
    HostName github.com
    Port 22

This block needs to be added at the top of the file.

Firewall¶

You need to ensure the firewall for the server allows port 22 outbound. This can be done through the MyUKFast portal, you can find more information on this here

Next Article > Using Git

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ