Authorized users only. All activities may be monitored and reported.
Authorized users only. All activities may be monitored and reported.
1. ssh密钥对认证登录,提示:
Authorized user only. All activities may be monitored and reported.
shell request failed on channel 0
原因:
连接用户的进程上限问题
解决:
修改 /etc/security/limits.conf 或 /etc/security/limits.d/20-nproc.conf 中的该用户相关的设置
user1 soft nproc 4096
可能是连接的用户进程上限。
可考虑让root用户去修改/etc/security/limits.conf 或 /etc/security/limits.d/20-nproc.conf 中的该用户相关的设置。
22.4 [lightdb@localhost ~]$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#
#<domain> <type> <item> <value>
##* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4# End of file
lightdb hard core unlimited
lightdb soft core unlimited
lightdb hard nofile 524288
lightdb soft nofile 524288
lightdb hard nproc 16384
lightdb soft nproc 16384
22.4 [lightdb@localhost ~]$ cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.* soft nproc 4096
root soft nproc unlimited
22.4 [lightdb@localhost ~]$ ping 10.19.69.186
PING 10.19.69.186 (10.19.69.186) 56(84) bytes of data.
^C
--- 10.19.69.186 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3062ms22.4 [lightdb@localhost ~]$
实在不行,用下面跳转的方式:
[lightdb@lightdb1 ~]$ ssh lightdb@10.20.248.5
The authenticity of host '10.20.248.5 (10.20.248.5)' can't be established.
ECDSA key fingerprint is SHA256:ijuCD5sp64kuWuVK9iv17eVB9a+hl3P6qW64pD52/1I.
ECDSA key fingerprint is MD5:56:61:ed:24:ec:fe:d2:49:e8:cf:df:6f:f1:02:57:7b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.20.248.5' (ECDSA) to the list of known hosts.
Authorized users only. All activities may be monitored and reported.
lightdb@10.20.248.5's password:
Authorized users only. All activities may be monitored and reported.
Web console: https://localhost:9090/ or https://10.20.248.5:9090/
Last login: Tue Apr 25 13:09:32 2023 from 10.188.127.39
[lightdb@localhost ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:8f:29:28 brd ff:ff:ff:ff:ff:ff
inet 10.20.248.5/24 brd 10.20.248.255 scope global ens192
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe8f:2928/64 scope link
valid_lft forever preferred_lft forever
[lightdb@localhost ~]$ ll
Authorized users only. All activities may be monitored and reported.相关推荐
- Authorized users only. All activity may be monitored and reported.
Authorized users only. All activity may be monitored and reported. Directory: /home/oracle 如出现如上问题,是 ...
- Java 调用Shell脚本执行 SCP命令提示Authorized users only. All activity may be monitored and reported.
近期做了个小项目主要是关于数据处理这方面的. 在Java后端调用服务器上Shell脚本,而Shell脚本执行时一条Scp执行结果的提示报 Authorized users only. All acti ...
- ssh/scp 使不提示 All activities are monitored and reported.
目录 场景 问题分析 思考问题 解决方法 其他 场景 当使用 ssh 远程执行目标端命令后,提示如下内容,非常不友好,怎么办? All activities are monitored and rep ...
- 银河麒麟 kylin server v10上创建虚拟机(基于 鲲鹏920 CPU)
目录 一.实验环境 1.cpu信息 2.操作系统版本 二.准备工作 1.安装虚拟化软件 2.修改vi /etc/libvirt/qemu.conf 3.重启libvirtd服务 4.设置开机启动 5. ...
- openEuler基础(二十)用户创建、密码管理、用户锁定
提出问题: 如何给系统添加新的用户? 如何给用户设置新的密码? 如何锁定一个用户? 如何解锁一个用户? 如何让一个用户下线? openEuler是一个多用户的操作系统,所有要使用系统资源的用户需要先向 ...
- DM MPP部署问题
1. 备份时提示:[-10002]:[错误码:-123]磁盘空间不足 解:加磁盘再扩容,采用LVM方式 挂载磁盘磁盘操作 LVM管理方式 1.创建PV pvcreate /dev/sdb 2.创建VG ...
- 使用虚拟机VMwarepro1623镜像文件导入部署openGauss3.1.1指导手册
使用虚拟机VMwarepro1623镜像文件导入部署openGauss3.1.1指导手册 (openEuler 20.03-LTS + openGauss 3.1.1) 本手册主要描述如何将现有的VM ...
- 基于麒麟SP10服务器版的Kubernetes集群安装
Kubernetes集群安装 1.规划 图1-1 节点IP地址规划 2.系统初始化 (1)为master.node1和node2节点设置主机名. [root@master ~]# hostnamect ...
- 在虚拟机VirtualBox7.0.6+openEuler20.03TSL上安装部署openGauss3.1.1数据库快速(一键)安装指导手册
<数据库> 在虚拟机VirtualBox7.0.6+openEuler20.3-LTS上安装部署openGauss3.1.1数据库指导手册 其他参考资料: -在虚拟机 VirtualBox ...
最新文章
- [Linux] PHP程序员玩转Linux系列-腾讯云硬盘扩容挂载
- linux shell eval 命令 字符串作为命令执行
- 阿里云CentOS6.3 安装MongoDB教程
- 完整的开发一个ContentProvider步骤
- yum install rpm包时报错
- 蓝牙模块耳机做蓝牙透传_WiFi、蓝牙在工业领域的数据透传应用_SKYLAB 无线模块...
- 【贪心School】机器学习课程笔记
- Cufon中文字符无法识别的解决方案
- java线程知识点拾遗(CAS)
- 隐藏与显现_惠州楼盘冷热不均价格涨跌互现 差异化调控作用显现
- 基于BearPi套件开发的智能儿童手表系统
- 【JSON】04_JSON的生成与解析
- 永不停歇(obama在亚利桑那州治大学毕业典礼上的演讲)
- 如何压缩视频而不降低画质?
- okdownload下载mp4视频文件
- GaussDB架构(下)
- wps怎么去除段落布局
- CTU Open Contest 2019 计蒜客重现补题报告
- Python根据身份证号计算年龄和退休时间并保存Excel文件
- win 10 的增量压缩
热门文章
- c语言语法糖公式,C语言一些语法糖
- e = e || window.event用法细节讨论
- **龙战于野大数据MR原理启动hive查询表分区,表结构,完整流程*
- 口罩佩戴监测系统 yolo
- 状态机的Verilog写法
- 乱谈zip、rar文件格式
- 条件分布函数(离散-条件分布律)
- Win11怎么进入高级启动?Win11进入高级启动模式的方法
- Linux 刻录CD/DVD命令 growisofs/mkisofs/cdrecord
- 计算机原理实验一汇编语言上机操作,实验一-汇编语言上机调试及基本操作.doc...