Winscp connection to the UIS fails

2021-12-21 06:31:30 Published
  • 0 Followed
  • 0Collected ,1454Browsed

Network Topology

irrelevant

Problem Description

The FTP client cannot connect to the UIS background and cannot use transfer software such as SFTP or WINSCP




Process Analysis

Background Login A node can transfer files to other nodes using SCP. The transfer software cannot be used on the terminal because the ROOT login permission is not enabled for the SSH service of the UIS. The configuration is as follows.

1. Query the SSHD service status.

[root@cvknode2 ~]# systemctl status sshd

sshd.service - OpenSSH server daemon

   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)

   Active: active (running) since Fri 2021-10-08 14:23:27 CST; 1 weeks 5 days ago

     Docs: man:sshd(8)

           man:sshd_config(5)

 Main PID: 4704 (sshd)

    Tasks: 3

   Memory: 85.5M

   CGroup: /system.slice/sshd.service

           ├─  4704 /usr/sbin/sshd -D

           ├─896815 sshd: [accepted]

           └─896823 sshd: [net]

 

Oct 21 13:48:42 cvknode2 sshd[896423]: Accepted publickey for root from 172...ek

Hint: Some lines were ellipsized, use -l to show in full.

2. Edit the SSHD config file

vi /etc/ssh/sshd_config

PasswordAuthentication yes

PermitRootLogin yes

service sshd restart



[root@cvknode2 ~]# systemctl restart sshd

[root@cvknode2 ~]# systemctl status sshd

sshd.service - OpenSSH server daemon

   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)

   Active: active (running) since Fri 2021-10-08 14:23:27 CST; 1 weeks 5 days ago

     Docs: man:sshd(8)

           man:sshd_config(5)

 Main PID: 4704 (sshd)

    Tasks: 1

   Memory: 82.5M

   CGroup: /system.slice/sshd.service

           └─4704 /usr/sbin/sshd -D

 

Oct 21 14:03:40 cvknode2 sshd[2344439]: Accepted publickey for root from 172...k

Oct 21 14:03:46 cvknode2 sshd[2353355]: Accepted publickey for root from 172...k

Oct 21 14:03:46 cvknode2 sshd[2354110]: Accepted publickey for root from 172...k

Oct 21 14:03:52 cvknode2 sshd[2362546]: Accepted publickey for root from 172...k

Oct 21 14:03:57 cvknode2 sshd[2369976]: Accepted publickey for root from 172...k

Oct 21 14:03:58 cvknode2 sshd[2371699]: Accepted publickey for root from 172...k

Oct 21 14:03:59 cvknode2 sshd[2373204]: Accepted publickey for root from 127...k

Oct 21 14:03:59 cvknode2 sshd[2373609]: Accepted publickey for root from 127...k

Oct 21 14:04:00 cvknode2 sshd[2375299]: Accepted publickey for root from 172...k

Oct 21 14:04:03 cvknode2 sshd[2381645]: Accepted publickey for root from 172...k

Hint: Some lines were ellipsized, use -l to show in full.


Solution

1.Edit the SSHD config file:

vi /etc/ssh/sshd_config

PasswordAuthentication yes

PermitRootLogin yes

2.Then restart the service:

service sshd restart


Please rate this case:   
0 Comments

No Comments

Add Comments: