Article 5FYBT Editing config. files in sshd server on Ubuntu using Terminal or Vim

Editing config. files in sshd server on Ubuntu using Terminal or Vim

by
Ana Hartley
from LinuxQuestions.org on (#5FYBT)
I am trying to edit OpenSSH 's /etc/ssh/sshd_config files, to create a password.

I have been unsuccessful in connecting from Android phone Juice client or termux, to my mobile dongle at home OpenSSHD on Ubuntu laptop at home. Just trying it to learn with.

In editing a ~/. ssh/config file on an Ubuntu client, they say to create a new Home Directory to put your user files in when editing config files on Client system (or do you edit existing as I would have rhought)?. Why would you create a new one? How would that be made findable by the client system on laptop if I am going, at some time, to connect from laptop (mobile) to laptop (mobile data, / an installed server).

Right now I am connecting from phone android to Ubuntu OpenSSHD(Mobile data) laptop, OpenSSHD, so the previous paragraphs not so important, but will want to know whether to creat client SSH config files one day. I am doing all this not to access files but just to learn how SSH works.

Where would you store(vim command) a backup-ed /etc/ssh/sshd_config file, so you can remember where it is for next time if you need it? And, in Vim, do you save the edited (same file) as write (:wq) onto or do you have to make it executable again? Anything else I should know before I go ahead and create password?

Also, articles say to create a Home Directory for your clientside program's ~/.ssh/config ( if I was to , theoretically do it from a Ubuntu laptop Client OpenSSH, to laptop, not from Android). Even if you do do this, how do you make it referrable--to, by the clientside's system? Just curious. I haven't done this yet as you can imagine as I'm coming in from a "phone app" client and haven't even been successful in connecting yet, I got "Connection Refused". I did everything I could, checked ip tables and enabled open in ufw and IP firewalls. I gained constantly changing, mobile dongle's correct IP from IPTable and settings app in Ubuntu, and WhatsMy IP, which wierdly always claimed to be another, different IP than IP Tables said it was. I checked ports were open, with
$sudo lsof -i -n -P | grep LISTEN
I have Vim.

I checked port was in use by sshd daemon with
netstat -nupl|grep 3306.

I know this is alot, but I have researched how these edit features work everywhere, and Nobody has a site that describes it (where backups r saved, why you need a new Home Directory for new user configurations if using a Client computer, (not android). There's just nothing about these finer details!

Thanks very much in advance.latest?d=yIl2AUoC8zA latest?i=ptrUeOqmtLk:algbwxUlziE:F7zBnMy latest?i=ptrUeOqmtLk:algbwxUlziE:V_sGLiP latest?d=qj6IDK7rITs latest?i=ptrUeOqmtLk:algbwxUlziE:gIN9vFwptrUeOqmtLk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments