Linux – I am unable to perform "local remote" access via SSH on my terminal

I am trying to remotely connect to a terminal on a local network, but I always get the error "." connection closed by "server-ip" port 22

SSH connection protocol:

SSH connection LOG

debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.0.107 [192.168.0.107] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.0.107:22 as 'test'
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.0.107 port 22

terminal – Use the breakpath command in the shell file

Somewhere in the macOS 10.15.1 terminal window, I have provided the command "breakpath", which outputs the entries in $ PATH as output, one per line. And I can redirect its output, eg.

breakpath > ~/myPATH.txt

When I use it in a bash shell file like "~ / printpath.sh"

#! /bin/bash
breakpath > ~/myPATH.txt

However, I get an empty file written and the error message in the terminal:

./printpath.sh: line 2: breakpath: command not found

What is wrong?

Unfortunately, as I said, I do not know the source of "breakpath". I tried "man breakpath", but I get "No manual entry for breakpath". And when I search on my Mac for a file called "breakpath", I find nothing.

terminal – The file config.inc.php can not be edited in the configuration of phpmyadmin

I'm trying to edit a file on my Mac. The file is config.inc.php XAMPP is located in /opt/lampp/phpmyadmin,

I tried to open the file with: sudo nano config.inc.php but it does not change because it says that I have no permission.

To change permissions with: sudo chmod 777 config.inc.phpBut I do not have to change it.

To reset the permissions of the computer and create a new administrator user who does not want to know about changing the permissions.

I freaked out, can someone help me?

Here is a screenshot of the terminal error:

Here is a screenshot of the terminal error

Terminal – Pinging Mac "Computer Name" encounters strange IP address

I'm using a MacBook Pro with Mojave 10.14.6. I had entered a computer name in the system settings, release from (not really) mymacbk. I'm using Frontier's FiOS service, whose router usually adds ".home" as the top-level domain. For various reasons discussed elsewhere on the Internet (for example, 189350), a hyphen-digit combination is added, so I see that mymacbk-3 uses the hostname command of bash.

But just for fun, I did

ping mymacbk
ping mymacbk.home

In both cases, I got back an IP address, which comes from Akamai Tech's https://mxtoolbox.com/SuperTool.aspx Reverse Lookup Tool: a23-202-231-168.deploy.static.akamaitechnologies.com Looking Both of my actual names (mymacbk and mymacbk.home) in their DNS lookup did not return anything.

What's happening? More importantly, is this possibly a symptom of a virus or malware infection or virus infection?

system – sys_write does not print a message to the terminal

I'm trying to examine GNU assembler using the following example: https://0xax.github.io/asm_1/

My code is main.s

 .data
 message: .ascii "ASSEMBLY OUTPUT"

.text
.globl _start

_start:
movq $1, %rax
movq $15, %rdx
movq message, %rsi
syscall
movq $60, %rax
movq $0, %rdi
syscall

Command Line Preparation:

as -g -o main.o main.s

ld -o main main.o

Now I'm running ./main
However, nothing prints and the terminal waits for my next command.

What's wrong?

In GNU Debugger, numbers have been successfully stored in registers.

Bash – Copy all files of a certain type to a specific folder using the Mac terminal

How can I use Mac's Terminal to copy all files of a particular type to a specific folder?

find . -name '*.STY' -type f -print0 | xargs -0 -I '{}' /usr/bin/rsync -avR "{}" "./styleFiles_chekad/"

The above shell script does the job and keeps the folders intact. What if I do not want the subfolders and want to have all files directly in the "styleFiles_chekad"? It is very complicated though. Is there an easier way to do this? The following command does not work!

cp . -name '*.STY' styleFiles_chekad/

Any help would be appreciated.

PS. Can anyone recommend a good resource for bash scripts?

Stopovers – Closure of the International Airport Terminal 2 in Hong Kong

Is the entire terminal closed during renovations (November 2019 – 2024) or only partially?

As a follow-up question, what is there to do during a 6-hour stay other than the normal shopping, eating and sleeping?

As far as I know, the IMAX Theater and the Aviation Discovery Center are in Terminal 2.

Draw the star shape square in the terminal using Python

I'm trying to use this code to draw a square with stars on my terminal:

print("t"" "*15 + "*"*45)
print(" "*9 + "*" + " "*9+"some text" + " "*25+ "*")
print(" "*9 + "*" + " "*9+"some text" + " "*25 + "*")
print(" "*9 + "*" + " "*9+"some text" + " "*25 + "*")
print(" "*9 + "*"*45)

What I'm trying to do is write a Python script that contains a list of commands in this star-shaped field that I can type into the terminal to do things. For a different length, I'll have to change the number of spaces after that by calculating how many spaces I need to print the last star correctly and the same thing before the "text". This is a silly way.

Does any of you have any ideas that can help make this more efficient?

grub2 – The GRUB rescue terminal remains in place

I have once Dual booted my laptop with Windows 10 and Ubuntu 19.04 and now I have to clean my system of everything GRUB has to do. So I removed GRUB from the EFI partition, which to my knowledge is the only place where the bootloader is to be installed at the time of installation.

But here is the catch. Whenever I try to boot from a live USB stick (USB Live is perfectly fine, check it on other systems), A GNU GRUB rescue terminal opens,Even if I deleted the EFI partition from the Ubuntu folder and the root partition (/),

So that's my question:
Is it possible that Grub was installed differently than the EFI partition or left traces of itself somewhere on the hard disk or in a place I have not checked yet?

As long as this part of GRUB persists, I can not install any other Linux distros, which bothers me