LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing config. files in sshd server on Ubuntu using Terminal or Vim (https://www.linuxquestions.org/questions/linux-newbie-8/editing-config-files-in-sshd-server-on-ubuntu-using-terminal-or-vim-4175692751/)

cyno77 03-27-2021 05:45 PM

Editing config. files in sshd server on Ubuntu using Terminal or Vim
 
Hello Friends!! I am new to Linux forum and old windoze user who is keen to start using Linux forever now! I love it, it is far better. Does anyone know EXACTLY how to take a .config file from sshd and can one just change the code in it? I assume using the cp command as one wants backup.(?) Incidentally, where should backup file be stored? Using new Ubuntu 2021. Thank-you awesome friends!

yancek 03-28-2021 07:14 AM

It would be helpful if you were a little more specific. A config file for what and is it a system file or a file in your /home/user directory? Are you using sshd to access the machine or trying to modify an sshd config file? Backup files are generally stored on a separate physical drive since one purpose is to have a backup if the drive in use fails.

shruggy 03-28-2021 07:32 AM

If what you mean is ~/.ssh/config then mine looks something like
Code:

Host f
HostName foo
User user1

Host b
HostName bar
User user2

Then I can just ssh f and it will translate to ssh user1@foo.


All times are GMT -5. The time now is 09:48 AM.