求助 shell 自动交互
发表于 : 2009-09-04 20:04
需求来源: 希望 vncviewer 能够记住密码自动登录
场景:
执行如下指令:
# vncviewer -passwdInput=true name=192.168.2.93 192.168.2.93:1
TigerVNC Viewer for X version 0.0.91 - built Aug 14 2009 09:53:29
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
Fri Sep 4 20:04:24 2009
CConn: connected to host 192.168.2.93 port 5901
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
出现上述信息后,我再直接输入服务器的密码将可以连接上去了。
我的问题:
有什么办法可以自动输入预先定义的密码,以实现自动登录呢?
场景:
执行如下指令:
# vncviewer -passwdInput=true name=192.168.2.93 192.168.2.93:1
TigerVNC Viewer for X version 0.0.91 - built Aug 14 2009 09:53:29
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 TightVNC Group
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
Fri Sep 4 20:04:24 2009
CConn: connected to host 192.168.2.93 port 5901
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
出现上述信息后,我再直接输入服务器的密码将可以连接上去了。
我的问题:
有什么办法可以自动输入预先定义的密码,以实现自动登录呢?