Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ After SSH change the default port, how to use Git     - Fedora 23 How to install LAMP server (Server)

- C ++ Supplements - Virtual Function Principle (Programming)

- Keepalived achieve high availability Nginx Reverse Proxy (Server)

- To create a full command line Android Build System (Linux)

- How to install Linux Go Language (Linux)

- Vim useful plugin: EasyGrep (Linux)

- How to configure HTTP Strict Transport Security (HSTS) (Linux)

- Sublime Text 3 practical functions and shortcut keys used to collect (Linux)

- To learn linux security (Linux)

- MyCAT easy entry (Database)

- Testing Oracle 11g RMAN replicate database (Database)

- Share useful bash aliases and functions (Linux)

- In the case of using cgroups Ubuntu 14.04 and Docker (Linux)

- Ubuntu Live CD by updating Grub resume boot the Boot Menu (Linux)

- Linux reserves the rest of the file to delete several (Linux)

- TOAST function in PostgreSQL (Database)

- Spring classic face questions Share (Programming)

- Oracle 11g logical standby achieve BI needs (Database)

- Source MongoDB 3.2.1 installed on CentOS6.5 (Database)

- Strategy Games Ubuntu installation of Wesnoth 1.12.1 (Linux)

  After SSH change the default port, how to use Git
  Add Date : 2018-11-21      
  For security or other reasons, we may modify the default SSH port services, by default, the existing project in git pull or push the time error.

Now suppose that the original set up remote project is git@linuxhost.com: Projects / p1.git, SSH server default port changes after 3022, leading to push error.

There are two solutions:

First, directly modify the URL to SSH: // at the beginning of
git remote set-url origin ssh: //git@linuxhost.com: 3022 / ~ / Projects / p1.git

Second, modify the local configuration files
cat> ~ / .ssh / config
# Mapping an alias
host newlinuxhost
hostname linuxhost.com
port 3022
# Ctrl + D

git profile under Modify p1.git project
git remote set-url origin git @ newlinuxhost: Projects / p1.git
- php How to prevent being injected (Linux)
- Vim configuration instructions (Linux)
- Use Ansible to bulk manage remote servers (Server)
- Shell scripts quickly deploy Tomcat project (Server)
- Installation Mesos + Marathon + Zookeeper under CentOS 7 (Server)
- Install snort intrusion detection system on Debian (Linux)
- Writing Better Bash build script 8 (Programming)
- How to install MySQL on Linux Dock (Database)
- How to create a binary distribution with Bash (Linux)
- Firewall settings oracle remote connection in Linux systems (Linux)
- In Spring AOP example explanation (Programming)
- Analysis of MySQL Dockerfile 5.6 (Database)
- Ubuntu 14.04 Boot Repair (Linux)
- Linux vi command list (Linux)
- The PostgreSQL database pg_dump command line does not enter a password method (Database)
- Features and prevention methods elaborate network security grayware (Linux)
- MongoDB query statistics grouping remove duplicate records (Database)
- Android Studio simple setup (Linux)
- Upgrade to Linux Mint 16 petra Mint 17 Qiana (Linux)
- Udev: Device Manager for Linux Fundamentals (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.