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
    • 最新
    • 标签
主页 / user-154599

AAlvz's questions

Martin Hope
AAlvz
Asked: 2013-03-26 13:11:03 +0800 CST

打印机识别但不打印。杯子

  • 2

我正在使用连接到通过 ssh 访问的服务器的 HP 1000 J110。我使用lsusb它出现在那里。然后,我将 PPD 粘贴到/etc/cups/ppd/文件夹上...当直接连接到 PC 时,我的 PC 用于打印的 ppd。

我用lpstat -p

它在那里显示打印机:

printer DESKJET-1000-J110 is idle.  enabled since Fri 22 Mar 2013 08:05:33 PM UTC

然后我使用:

lp -d DESKJET-1000-J110 filetoprint.txt

请求 ID 是 DESKJET-1000-J110-111(1 个文件)

文件似乎已发送打印,实际上显示为已完成,但它只是不打印任何内容。

还尝试使用 HPLip 并在尝试运行hp-setup -i时说:

error: No device selected/specified or that supports this functionality.

我检查过,这台打印机受 hplip 支持。

我错过了什么?..

debian
  • 2 个回答
  • 11166 Views
Martin Hope
AAlvz
Asked: 2013-03-02 10:57:35 +0800 CST

为什么我的 scp 只在一侧工作?“失联”SCP传输

  • 1

我正在尝试通过 ssh 传输文件,但它只能从 PC1 传输到 PC2,但不能反向传输。

我检查了我的 ssh_config 文件,两者都是一样的。这是基本的:

Host *
SendEnv LANG LC_*
HashKnownHosts 
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no

因为我也在尝试将其添加到接收者中ssh_config

PasswordAuthentication no
Port 22
Protocol 2, 1

而且它仍然不起作用。

这是我的 I/O

:~# scp -v testFile.txt [email protected]:/home
Executing: program /usr/bin/ssh host 192.168.1.67, user root, command scp -v -t /home
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.67 [192.168.1.67] port 22.
debug1: connect to address 192.168.1.67 port 22: Connection refused
ssh: connect to host 192.168.1.67 port 22: Connection refused
lost connection

我错过了什么?

ssh
  • 1 个回答
  • 14295 Views
Martin Hope
AAlvz
Asked: 2013-02-09 11:41:26 +0800 CST

apt-get upgrade 未找到 IP。Sources.list 问题?(莱尼)[重复]

  • 0
这个问题在这里已经有了答案:
apt-get update 在 debian lenny 上获取 404 (3 个答案)
9 年前关闭。

apt-get updaterunnong命令时我遇到了很多这样的错误

Ign http://archive.debian.org lenny/volatile/main Sources/DiffIndex
Ign http://archive.debian.org lenny/volatile/contrib Sources/DiffIndex
Ign http://archive.debian.org lenny/volatile/non-free Sources/DiffIndex
Hit http://archive.debian.org lenny/updates/main Packages
Hit http://archive.debian.org lenny/updates/contrib Packages
Hit http://archive.debian.org lenny/updates/non-free Packages
W: GPG error: http://archive.debian.org lenny/updates Release: The following signatures were invalid: KEYEXPIRED 1356982504
W: GPG error: http://archive.debian.org lenny/volatile Release: The following signatures were invalid: KEYEXPIRED 1358963195
W: You may want to run apt-get update to correct these problems

为什么我不能更新?.. 这一切都是在运行upgrade命令后完成的。

这是我的 sources.list

deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian-security lenny/updates main contrib non-fre
e
deb-src http://archive.debian.org/debian-security lenny/updates main contrib non
-free
deb http://archive.debian.org/debian-volatile lenny/volatile main contrib non-fr
ee
deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib no
n-free

这一切与Debian GNU/Linux 6.0

debian-lenny
  • 2 个回答
  • 2695 Views
Martin Hope
AAlvz
Asked: 2013-01-20 11:09:47 +0800 CST

是否可以更改 AWS 中 EC2 实例的“终止”状态?

  • 2

我终止了一个实例,因为我不再需要它,但为了避免创建另一个我想知道是否可以重新激活它的实例,我在管理控制台中尝试过,但重新激活看起来不像一个选项.. .

amazon-ec2
  • 1 个回答
  • 141 Views
Martin Hope
AAlvz
Asked: 2013-01-16 11:57:14 +0800 CST

VPN 证书验证失败 (OpenVPN)?中央操作系统和Ubuntu

  • 1

好的,我会解释我做了什么......最后是问题。谢谢你!

为了设置我的 VPN,我在服务器和客户端机器上安装了 OpenVPN。在服务器上,我在文件 /etc/openvpn/easy-rsa/vars 中配置了证书颁发机构,编辑以下行:

export KEY_COUNTRY=”ES”
export KEY_PROVINCE=”M”
export KEY_CITY=”Madrid”
export KEY_ORG=”My Organization”
export KEY_EMAIL=”[email protected]”

然后我生成了证书:

cd /etc/openvpn/easy-rsa/ ln -s openssl-1.0.0.cnf openssl.cnf source vars ./clean-all ./build-ca

创建了服务器证书:

./build-key-server myServer

Diffie Hellman 参数到服务器

./build-dh

复制的证书和密钥 /etc/openvpn

cd keys/ cp myServer.crt myServer.key ca.crt dh1024.pem /etc/openvpn/

创建的客户端证书

cd /etc/openvpn/easy-rsa/ source vars ./build-key client1

将此证书复制到客户端计算机并从服务器中删除它们:

/etc/openvpn/ca.crt

/etc/openvpn/easy-rsa/keys/cliente.crt

/etc/openvpn/easy-rsa/keys/cliente.key

将 /etc/openvpn/server.conf 编辑为我的文件名

ca ca.crt
cert myServer.crt
key myServer.key
dh dh1024.pem

/etc/init.d/openvpn 重启

验证 tun0 在那里

ifconfig tun0

在 /etc/sysctl.conf 上启用 ip_forward 参数以便包可以流动

net.ipv4.ip_forward=1

还启用了虚拟网络屏蔽,因此客户端可以访问所有远程机器

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

并保存 ip 表 conf,这样它们就不会在重启时消失

将 conf 保存到文件中

sudo sh -c “iptables-save > /etc/iptables.rules”

编辑 /etc/network/interfaces 添加接口(本例中为 eth0)

准备 iptables-restore < /etc/iptables.rules

获取以下 server.conf

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb3

在客户端中,我安装了 OpenVPN 并使用证书编辑 /etc/openvpn 中的 client.conf 文件:ca.cert、client1.key、c​​lient1.conf 获取以下 client.conf 文件:

client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3

然后重新启动:

/etc/init.d/openvpn 重启

当我想用 ifconfig tun0 验证接口 tun0 是否存在时,却没有。

所以我检查了我的日志,在客户端机器上有错误:

VERIFY ERROR: depth=0, error=unable to get local issuer certificate: /C=Es/ST=M/L=Madrid/O=xxx/OU=xxx/CN=myServer/name=xxx/[email protected]
TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
user openvpn[7984]: TLS Error: TLS object -> incoming plaintext read error
user openvpn[7984]: TLS Error: TLS handshake failed

这是服务器日志中的错误

xxx.xxx.xxx.xxx:59439 SIGUSR1[soft,tls-error] received, client-instance restarting
MULTI: multi_create_instance called
xxx.xxx.xxx.xxx:59485 Re-using SSL/TLS context
xxx.xxx.xxx.xxx:59485 LZO compression initialized
xxx.xxx.xxx.xxx:59485 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
xxx.xxx.xxx.xxx:59485 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
xxx.xxx.xxx.xxx:59485 Local Options hash (VER=V4): '530fdded'
xxx.xxx.xxx.xxx:59485 Expected Remote Options hash (VER=V4): '41690919'
xxx.xxx.xxx.xxx:59485 TLS: Initial packet from [AF_INET]xxx.xxx.xxx.xxx:59485, sid=0349f4d6 657535c9
xxx.xxx.xxx.xxx:59440 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
xxx.xxx.xxx.xxx:59440 TLS Error: TLS handshake failed
xxx.xxx.xxx.xxx:59440 SIGUSR1[soft,tls-error] received, client-instance restarting

我再次创建了密钥,并在 client.conf 文件中添加了证书的完整路径,但它仍然不起作用。还尝试禁用我所有的防火墙,但由于该错误仍然无法连接到我的服务器。

另一件重要的事情是我的服务器是 ubuntu 12.04 和客户端 CentOS 6.3

我可以看到我找到了我的服务器,但连接仍未完成...

我应该怎么办??

如果需要更多配置文件,告诉我给你看

certificate
  • 2 个回答
  • 11778 Views

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve