AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[putty](ubuntu)

Martin Hope
Pavan Guguloth
Asked: 2020-05-30 04:44:50 +0800 CST

E:列表文件/etc/apt/sources.list.d/additional-repositories.list(组件)中的错误条目4 E:无法读取源列表[重复]

  • 0
这个问题在这里已经有了答案:
E:列表文件/etc/apt/sources.list(组件)中的错误条目54 (1个答案)
E:列表文件/etc/apt/sources.list(组件)中的错误条目52 (1个答案)
2年前关闭。

我正在尝试安装腻子,但出现以下错误

E: Malformed entry 4 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
E: Malformed entry 4 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.

在浏览了这个论坛上的一些帖子之后。sudo nano /etc/apt/sources.list.d/additional-repositories.list我使用以下内容打开文件

deb [arch=amd64] https://download.docker.com/linux/debian    sylvia    stable
deb [arch=amd64] https://download.docker.com/linux/debian    sylvia    stable
deb [arch=amd64] https://download.docker.com/linux/ubuntu    sylvia sudo add-ap$
deb [arch=amd64] https://download.docker.com/linux/ubuntustable
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable

我在第 4 行中创建了 ubuntu 和 stable 之间的空间。但仍然有理智的错误?它有什么问题?

PS:- 第一次接触 docker 时,我卸载了一些我不需要的软件包。所以,我想删除所有 docker 文件并为 linux mint 重新安装。

software-installation software-uninstall putty docker
  • 1 个回答
  • 1560 Views
Martin Hope
brethvoice
Asked: 2020-05-21 09:46:26 +0800 CST

xclock 不显示在本地计算机上

  • 0

我听说我可以使用“X11 转发”(不管是什么意思)在本地机器上显示在远程服务器上生成的图形。因此,我遵循了这些说明(安装了 Xming,通过 PuTTY 连接)和链接文章的建议(不使用 PuTTY),但一无所获。使用 Ubuntu 18.04.4 (LTS) 作为非 sudoer 通过 VPN 访问登录。

这是我在键入命令时不断收到的错误xclock(是的,which xclock返回usr/bin/xclock所以它已安装)。

Error: Can't open display:

无论我如何$DISPLAY使用以下命令进行设置:

export DISPLAY=localhost:0.0

我总是收到这条消息。

server xorg ssh putty
  • 1 个回答
  • 2280 Views
Martin Hope
Joseph Stateson
Asked: 2020-01-24 16:38:25 +0800 CST

复制和粘贴时制表符更改为空格

  • 3

我正在 putty 终端中编辑 python 脚本。复制和粘贴会导致制表符被空格替换,即使在同一终端中也是如此,这会导致问题。这是腻子行为吗?纳米行为?窗户里的东西?因为我使用的是 nano,所以我可以标记和复制,但最终需要将修改后的脚本更改粘贴回我创建脚本的 Linux 系统中。该系统没有 AMD 板,我正在使用 putty 访问每个系统的系统上测试脚本

python3 putty
  • 2 个回答
  • 1927 Views
Martin Hope
Hakan Usakli
Asked: 2020-01-10 02:28:33 +0800 CST

如何在修复模式下为 PuTTY 打开端口 22 ssh

  • 1

Ubuntu 18.04,托管虚拟服务器。在端口 22 上尝试 SSH Putty 连接会导致超时。端口关闭。通过主机服务管理面板,我可以将服务器置于“修复”模式,并可以通过 Putty 连接到 SSH 端口 22。

当以修复模式连接时,“普通”服务器的文件系统位于 /repair/ 文件夹中。

托管服务提供商告诉我,我需要发出打开 /repair/ 实例上的端口 22 的命令。我不知道该怎么做。

例如,我所做的所有操作都会影响“修复”实例而不是“正常”服务器

sudo ufw allow ssh 

在“修复”实例上工作,当我从管理界面以“正常”模式重新启动时,端口 22 再次关闭

如何从修复实例为 SSH 打开端口 22?可以通过编辑文本/配置文件来完成吗?

如果是这样,请有人提供详细说明

修复实例的文件系统:

root@h2861449:/# ls bin dev home lib64 media opt repair run srv tmp var boot etc lib lost+found mnt proc root
sbin sys usr

/repair/的文件系统

root@h2861449:/repair# ls aquota.group bin dev home lib64
media opt proc run srv tmp var aquota.user boot etc lib lost+found mnt private-backup root sbin sys usr

非常感谢你

ssh dual-boot putty
  • 1 个回答
  • 655 Views
Martin Hope
Sharad
Asked: 2019-12-24 07:52:37 +0800 CST

在 Oracle VM Virtual Box Manager 上安装 Fresh Ubuntu 18.04.3 LTS,但无法与 Putty 连接

  • 1
admin1@admin1-VirtualBox : ~ $ lsb_release -a
没有可用的 LSB 模块。
经销商编号:Ubuntu
说明:Ubuntu 18.04.3 LTS
发布时间:18.04
代号:仿生

如上所述在 Oracle VM Virtual Box Manager(安装在 Windows 10 上的 Oracle VM Virtual Box Manager)上安装了 Fresh Ubuntu 18.04.3 LTS,但在端口 22 上与 Putty 连接时出现问题。ssh 服务器已经在运行并尝试禁用防火墙但没有成功。

在此处输入图像描述

/etc/netplan/ 目录有文件名,

admin1@admin1-VirtualBox : /etc/netplan $ sudo nano 01-network-manager-all.yaml

和内容,

# 让 NetworkManager 管理这个系统上的所有设备
网络:
  版本:2
  渲染器:网络管理器

-ifconfig的命令输出

admin1@admin1-VirtualBox : /etc/netplan $ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 10.0.2.15 网络掩码 255.255.255.0 广播 10.0.2.255
        inet6 fe80::1861:58f3:5ae4:1e5 prefixlen 64 scopeid 0x20<link>
        以太 08:00:27:04:b3:e6 txqueuelen 1000(以太网)
        RX 数据包 5281 字节 3827866 (3.8 MB)
        RX 错误 0 丢弃 0 溢出 0 帧 0
        TX 数据包 3392 字节 766694 (766.6 KB)
        TX 错误 0 丢弃 0 超限 0 载波 0 冲突 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 网络掩码 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000(本地环回)
        RX 数据包 589 字节 49015 (49.0 KB)
        RX 错误 0 丢弃 0 溢出 0 帧 0
        TX 数据包 589 字节 49015 (49.0 KB)
        TX 错误 0 丢弃 0 超限 0 载波 0 冲突 0

如何在 Windows 10 上从 Putty 连接到 Ubuntu。请帮助,我已经花了几个小时,我是 Ubuntu 新手。

networking putty
  • 1 个回答
  • 128 Views
Martin Hope
Kreezxil
Asked: 2019-02-01 12:57:27 +0800 CST

粘贴到远程服务器上的 SSH 会导致奇怪的字符,也就是括号中的粘贴

  • 3

当我连接到任何远程 Ubuntu 服务器时,大多数(如果不是全部)都会在粘贴文本的正面和背面打印额外的字符。

我正在为 Windows 10 Pro 64 位使用 putty 0.70。

0~/home/kreezxil/work/cobbleblock/./mods/clumps-3.1.1.jar1~

0~ 和 1~ 是我想去掉的额外字符。

我在 Ubuntu 16.04.5 LTS 服务器上的语言环境输出是:

LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

猫 /etc/default/locale

#  File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US:"
LC_ALL=en_US.UTF-8

非常感谢任何帮助。

2019 年 2 月 18 日修订

我最近了解到这种称为括号粘贴的方法,当您在 Google 上搜索该术语时,您会在许多与该问题相关的情况下找到许多文章。几乎所有人都向 tee 描述了我的问题,但他们的解决方案不适合我,因为从 Windows 10 获取文本并在我的 Linux 服务器上粘贴 ssh 会话时出现问题。

那天晚些时候

一时兴起,我决定完全卸载腻子,然后执行注册表清理和垃圾文件删除,从而确保从我的系统中删除它及其所有各种设置。

了解到 Windows 10 拥有自己的 SSH,现在由 OpenSSH 提供支持。试过了,没有得到括号粘贴。但不喜欢它没有为我提供足够的自动化,例如它缺少 -pw(密码)选项。

然后我重新安装了putty,这次选择了32位的版本,我一直用64位,这次我选择了32位。成功,不再括号粘贴。

我认识到这就像下面的好评论是一个解决方案,但不是解决方案。我并不完全愿意接受下面的第一个答案,尽管它很好,因为它不适用于我的情况,即使当我问这个问题时,我也不知道如何准确地表达这个问题。我希望我的经验和我的发现能帮助以后的人解决类似的问题。

更久的时间过去了,现在是 2019 年 10 月 6 日

从那以后我重新安装了我的操作系统并获得了最新版本的腻子,它是 0.73,是的,我得到了 64 位,是的,它确实被括起来了。然后我在这里重新发现了我自己的问题并遵循了所有建议,但这次即使是 32 位 0.73 也确实是括号内的,这让我相信 putty 开发团队中的某个人真的很喜欢括号内。

在您看到的评论中,我说我会尝试 0.70 32bit。这是一个好主意,因为它没有括号中的问题。

server ssh text putty
  • 1 个回答
  • 1055 Views
Martin Hope
Heavy Hemi
Asked: 2018-12-10 15:11:20 +0800 CST

从 ubuntu 到 windows 7 的 Xforwarding 是在 ubuntu 上显示程序而不是转发

  • 0

今天我从我的 Windows 7 机器上 ssh 到我的 Ubuntu 18.04 服务器进行一些日常维护,以发现 xforwarding 不起作用。在 ssh 会话中,无论使用 putty 还是 cygwin,如果我真的键入 xeyes 或 xclock 或任何程序,它们不会显示在我的 windows 7 机器上,而是显示在 ubuntu 服务器上。

我已经清除了 ssh 和 openssh-client 并重新安装并重新配置了所有内容并重新启动了多次。无论 xming 或 VcXsrv 是否正在运行,我都没有收到 display not found 错误。

我已经尝试按照各种基本教程进行设置,这些是我的头在桌子上敲了几个小时后的样子。多年来,我一直在使用 xforwarding 和 putty/xming,并在过去一年中使用 cygwin/VcXsrv。我从来没有遇到过这样的问题。

谢谢你的帮助。如果您需要更多信息,请尽可能快地获得它。

编辑:据我所知,自从我上次登录以来,ubuntu 机器没有任何变化甚至更新,我还安装了软件更新程序中的所有更新,并进行了 apt upgrade 以查看是否可以修复它。windows 7 机器的唯一变化是我在 Sli 中的显卡烧毁了一个电容器,所以它现在是一台单 GPU 机器。不过,不确定这些是否相关。

Edit2:我尝试在https://www.computersnyou.com/4945/re-install-xorg-xserver-completely-ubuntu/之后清除并重新安装 xorg/xserver ,同时我还清除并重新安装了 ssh xauth openssh-client/服务器和所有其他相关的包。在不触及 ssh_config 或 sshd_config 中的任何 ssh 设置的情况下,服务器仍然接受 xforwarding 请求并仍然在服务器上显示 gui 窗口。我准备重新格式化我的ssd并重新开始,对此失去耐心。

xxxxxxxxx@xxxxxxxxx-PC ~
$ ssh -vv -X [email protected]
OpenSSH_7.8p1, OpenSSL 1.0.2p  14 Aug 2018
debug2: resolve_canonicalize: hostname xxx.xxx.x.xxx is address
debug2: ssh_connect_direct
debug1: Connecting to xxx.xxx.x.xxx [xxx.xxx.x.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/xxxxxxxxx/.ssh/id_rsa type 0
debug1: identity file /home/xxxxxxxxx/.ssh/id_rsa-cert type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_dsa type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_dsa-cert type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_ecdsa type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_ed25519 type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_ed25519-cert type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_xmss type -1
debug1: identity file /home/xxxxxxxxx/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.1
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.1 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to xxx.xxx.x.xxx:22 as 'xxxxxxxxx'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:3bJ4ybkpZBKgbP825aaWyNkqlZD3iTMUwgJvfb5r/HU
debug1: Host 'xxx.xxx.x.xxx' is known and matches the ECDSA host key.
debug1: Found key in /home/xxxxxxxxx/.ssh/known_hosts:1
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /home/xxxxxxxxx/.ssh/id_rsa (0x6000612a0)
debug2: key: /home/xxxxxxxxx/.ssh/id_dsa (0x0)
debug2: key: /home/xxxxxxxxx/.ssh/id_ecdsa (0x0)
debug2: key: /home/xxxxxxxxx/.ssh/id_ed25519 (0x0)
debug2: key: /home/xxxxxxxxx/.ssh/id_xmss (0x0)
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:KRPrnbeowYMk7q0WFIU47jXxs3ZrU63iHwrf050A9Sc /home/xxxxxxxxx/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:KRPrnbeowYMk7q0WFIU47jXxs3ZrU63iHwrf050A9Sc
debug1: Authentication succeeded (publickey).
Authenticated to xxx.xxx.x.xxx ([xxx.xxx.x.xxx]:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: client_x11_get_proto: /usr/bin/xauth -f /tmp/ssh-GNvkAnvxZLop/xauthfile generate :0 MIT-MAGIC-COOKIE-1 untrusted timeout 1260 2>/dev/null
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-GNvkAnvxZLop/xauthfile list :0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: X11 forwarding request accepted on channel 0
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-42-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


 * Canonical Livepatch is enabled.
   - All available patches applied.

0 packages can be updated.
0 updates are security updates.

Last login: Sun Dec  9 17:34:32 2018 from 192.168.1.152
xxxxxxxxx@UbuntuBox:~$

ssh_config

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
   ForwardAgent yes
   ForwardX11 yes
   ForwardX11Trusted yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_ecdsa
#   IdentityFile ~/.ssh/id_ed25519
   Port 22
   Protocol 2
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,[email protected]
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes

sshd_config

#   $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem   sftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   PermitTTY no
#   ForceCommand cvs server
xorg ssh putty
  • 1 个回答
  • 181 Views
Martin Hope
mr_info
Asked: 2018-08-10 07:39:37 +0800 CST

如何在 Ubuntu 上安装 Pageant 或其他

  • 2

我目前正在尝试在 Ubuntu 16 上安装 Pageant。我习惯于将 Putty 用于 ssh,将 Pageant 用于连接。我去过多个网站,但找不到我的答案:

  1. 如何下载选美大赛?

  2. 我想下载 Pageant,但是我应该在 Ubuntu 环境中使用另一个程序吗?

我知道 putty 不是 ssh 的必需品,它是为 Windows 用户构建的。Linux 可以使用命令行实现相同的功能,但就像我说的那样,我已经习惯了这个工具。但是,如果有办法一起“模仿”腻子和选美,我愿意提出建议!

(我需要使用 .pem 文件通过 putty 访问我的 AWS 服务器,这就是我坚持使用 Pageant 的原因。)

如果你们中的任何人有更好的想法来实现这一点,请告诉我!

server ssh aws putty 16.04
  • 1 个回答
  • 5995 Views
Martin Hope
Aditya Mandal
Asked: 2018-07-28 00:56:53 +0800 CST

如何在终端中显示所有包名称?

  • 1

我在我的计算机上使用 AWS/EC2 ubuntu 服务器,我是新手,我只有一个命令行界面来使用该 ubuntu 服务器,登录时有一条消息,我看到可以更新 31 个包,所以我想知道这些包是什么以及它们的名称,以便我可以根据自己的选择一一手动更新。

server apt aws putty 16.04
  • 1 个回答
  • 26 Views
Martin Hope
thezin
Asked: 2018-05-16 07:24:14 +0800 CST

腻子分段错误

  • 1

我刚刚使用sudo apt-get install putty命令安装了 PuTTY。

当我尝试运行它时,我立即收到Segmentation fault (core dumped)错误消息。

我怎样才能解决这个问题?

segmentation-fault putty 17.10
  • 1 个回答
  • 1530 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve