[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1103
  • Last Modified:

ssh config file

I have a RedHat distribution of linux installed (FedoraCore1) on my home machine and am looking for an ssh config file in ~/.ssh/config.   However, I cannot find this file on my machine.   Isn't this thing preinstalled or do I have to download or obtain it in some other way?   How can I get this file?   Please let me know.
0
skyblue01
Asked:
skyblue01
  • 2
  • 2
2 Solutions
 
jlevieCommented:
You won't have a ~/.ssh/config unless you create one. The global client config file is /etc/ssh/ssh_config, which you can copy to ~/.ssh/config and edit to your liking.
0
 
skyblue01Author Commented:
By copying, do you mean moving the same exact file to ~/.ssh/?   In that case, do I create a dir called .ssh?   Or do I copy and paste the content to a new text file and name it config and place it in ~/.ssh?

I am not sure of your copying process since I don't have a ~/.ssh directory on my machine and it sounds like it's not something I should be creating...
0
 
owensleftfootCommented:
Type "cd" (without the quotes) to return to your home directory. Type "mkdir .ssh" to create the ssh directory in your home directory. Create/edit a config file in this directory.
0
 
jlevieCommented:
the .ssh directory will be created the first time you use ssh, scp, or sftp.  You can create the directory before using any of the SSH client programs with:

cd ~/
mkdir .ssh
chmod 700 .ssh

In general, the defaults in the sitewide ssh_config file are suitable for most users. Before going to the trouble of creating a personal config in .ssh/config I'd suggest that you go through the global config and see if yu really need any customizations.
0
 
skyblue01Author Commented:
k.   i'll try that, thanks.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now