V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lilifenghao44  ›  全部回复第 4 页 / 共 5 页
回复总数  83
1  2  3  4  5  
2016-07-17 12:01:20 +08:00
回复了 lilifenghao44 创建的主题 Linux 为什么将 命令 放到 sh 中执行,会被终止
@matthewgao 加了&不是会被放到 pstree 的 init 下面么?不应该因为脚本关闭,而关闭被打开的进程啊.
2016-07-14 15:12:54 +08:00
回复了 Themyth 创建的主题 Linux 有简单的 udp tunnel 么?
n2n
2016-06-30 11:15:42 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
@Siril 上面用 shadowVPN 加 iptables 是可以的. 关于这个我有点疑惑需要请问,可以留个联系方式么.
现在边看看推荐的 n2n 用起来怎样.
2016-06-30 08:54:47 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
@Siril 主要是之前可以用,现在不能用,想找到原因.
如果用 vpn 的话,其它设备要访问资源也要连进来.
2016-06-29 23:48:42 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
@fatedier 回复忘记 @ 了
2016-06-29 23:42:48 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
感谢,明天上班运行看看。
这个还是要用 vps 跳转所有流量啊。要是能用 Python 写个 socket ,借助 vps 通信,然后可以两个不同 nat 内的机子尝试穿透直接路由就好了。
2016-06-29 23:35:45 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
@robin4700 添加这句后,重启客户机的 autossh 重启 vps 的 ssh ,还是不行。

root@lovit:~# cat /etc/ssh/ssh
ssh_config ssh_host_ecdsa_key ssh_host_rsa_key
sshd_config ssh_host_ecdsa_key.pub ssh_host_rsa_key.pub
ssh_host_dsa_key ssh_host_ed25519_key
ssh_host_dsa_key.pub ssh_host_ed25519_key.pub
root@lovit:~# cat /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 29688
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys

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

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

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

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

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

Subsystem sftp /usr/lib/openssh/sftp-server

# 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'.

GatewayPorts yes
UsePAM yes
root@lovit:~#
2016-06-29 23:06:55 +08:00
回复了 lilifenghao44 创建的主题 Linux ssh tunnel 问题求助
@Siril vps 可以看到所有的 ssh 监听端口, curl 能拿到网页, ssh 能连。
就是无法在其它机器用 vps 的 IP 和端口 进行连接。用 Debian 时是可以的。
[email protected] 支持你们!
2014-09-23 17:37:27 +08:00
回复了 lilifenghao44 创建的主题 SSD 请问 vhd 文件在存储上是什么样的?
@GordianZ 那么请问能告知,用vhd启动系统的话,做的数据修改时怎么回写的吗?
2014-09-23 17:22:52 +08:00
回复了 lilifenghao44 创建的主题 SSD 请问 vhd 文件在存储上是什么样的?
@wzxjohn 就是不太清楚vhd文件的写盘行为,如果只剩余7g的话恐怕正常跑系统支撑不了多久,就算有磨损平衡,那也要把那25g数据反复移动。如果有12g空闲的话或许能够用到有钱买大容量盘。
2014-09-23 16:23:48 +08:00
回复了 lilifenghao44 创建的主题 SSD 请问 vhd 文件在存储上是什么样的?
@GordianZ 感谢帮助,那么vhd数据修改的话,是怎样写盘的呢?
2014-09-23 16:19:13 +08:00
回复了 lilifenghao44 创建的主题 SSD 请问 vhd 文件在存储上是什么样的?
@wzxjohn 也就是说,如果想芯片擦写寿命更长的话,就要释放vhd文件,用传统模式引导么?这样vhd里面的5g空闲就空出来了?
2014-09-23 15:51:51 +08:00
回复了 lilifenghao44 创建的主题 SSD 请问 vhd 文件在存储上是什么样的?
@wzxjohn 不好意思,信息如图pic.twitter.com/kHdpSc5LTS
如果想让u盘用的久一点是不是就不能用vhd模式?如果vhd看作单文件存储的话
2014-08-31 17:33:58 +08:00
回复了 puyo 创建的主题 问与答 goagent 速度和有关系吗?
电信干扰比较厉害,移动铁通完美...所以自己找ip,最好还是在抽风的时候换其他代理把.
2014-08-31 17:32:21 +08:00
回复了 aheadlead 创建的主题 问与答 大家怎样看待这样使用盗版软件
支持正版.一般软件如果中度以上使用就会去购买正版,若是偶尔使用那就算了.
太贵的windows就算了,其实也不怎么用windows...
@maye696 ios用tweetbot啊,api不知道,我用shadowsocks官方twitter都可以翻出去.
Twidere+1
2014-07-12 20:40:55 +08:00
回复了 ROCK2046 创建的主题 问与答 求可以自动抓取网站图片的软件
顺便求一个批量下google image搜索的东西
1  2  3  4  5  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3737 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 10:34 · PVG 18:34 · LAX 03:34 · JFK 06:34
Developed with CodeLauncher
♥ Do have faith in what you're doing.