Tim on your unofficial InterWorx pages, I find that one should be able to use “vi filename” to edit a text file.
When I use that this way:
vi /etc/ssh/sshd_config
It then open up a seemingly blank text editor, and being used to Windows I was expecting to see the contents of the currently file so I could easily edit needed lines.
Did you edit the file as root? /etc/ssh/sshd_config can only be edited by a privileged user, so if you’re not root, the file will show up empty (probably with a “permission denied” error somewhere).
Before I called BellSouth, where they had me reset my ADSL modem and unplug and replug cables and both modem and network router, I tried using “vi” to edit the above mentioned file. As I could not see anything to edit, and soon used “:qa!” to exit.
Now I get an error message when trying to login via SSH:
The host ‘xx.xxx.xx.xxx’ is unreachable.
The host may be down, or there may a problem with the network connection.
Sometimes such problems can also be caused by a misconfigured firewall"
[root@server1 /]# yum install nano
Gathering header information file(s) from server(s)
Server: Red Hat Linux 9 - Base
Server: Red Hat Linux 9 - Fedora Legacy - Updates
Server: InterWorx-CP - Generic
Server: InterWorx-CP - Red Linux 9
Server: Red Hat Linux 9 - Updates
Finding updated packages
Downloading needed headers
Cannot find a package matching nano
No actions to take