LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 03-27-2021, 05:45 PM   #1
cyno77
Member
 
Registered: Mar 2021
Location: Sydney, Australia
Distribution: Ubuntu Linux
Posts: 47

Rep: Reputation: Disabled
Unhappy 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!
 
Old 03-28-2021, 07:14 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.
 
Old 03-28-2021, 07:32 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
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.
 
  


Closed Thread

Tags
backupoptions, editing, sshdconfig



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing config. files in sshd server on Ubuntu using Terminal or Vim cyno77 Linux - Newbie 9 03-31-2021 11:22 AM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration