- 论坛徽章:
- 0
|
本帖最后由 apzc2529 于 2014-06-10 08:56 编辑
升级系统后发现两个小问题,想请教一下问题处在哪里了。
(1) ping、ssh命令均可以解析计算机名lnm2312,而scp却无法解析计算机名,提示ssh: Could not resolve hostname lnm2312: Invalid argument。- cunzhang@Debian:~$ ping lnm2312
- PING lnm2312 (192.168.1.61) 56(84) bytes of data.
- 64 bytes from lnm2312 (192.168.1.61): icmp_req=1 ttl=64 time=0.402 ms
- ^C
- --- lnm2312 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.402/0.402/0.402/0.000 ms
- cunzhang@Debian:~$ ssh lnm2312
- Linux lnm2312 3.2.0-1-amd64 #1 SMP Sun Feb 5 15:17:15 UTC 2012 x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Tue Jun 10 08:44:37 2014 from 192.168.1.60
- cunzhang@lnm2312:~$ logout
- Connection to lnm2312 closed.
- cunzhang@Debian:~$ scp ~/test.data lnm2312:~/
- ssh: Could not resolve hostname lnm2312: Invalid argument
- lost connection
复制代码 (2) 访问本地vncserver的问题, 一般情况下都是通过vncviewer :3这种方式访问,现在却提示unable to resolve host by name,
用vncviewer 127.0.0.1:3可以访问。- cunzhang@Debian:~$ vncviewer :3
- VNC Viewer Free Edition 4.1.1 for X - built Jan 30 2013 16:07:52
- Copyright (C) 2002-2005 RealVNC Ltd.
- See http://www.realvnc.com for information on VNC.
- Tue Jun 10 08:46:18 2014
- main: unable to resolve host by name: Resource temporarily unavailable
- (11)
- cunzhang@Debian:~$ vncviewer 127.0.0.1:3
- VNC Viewer Free Edition 4.1.1 for X - built Jan 30 2013 16:07:52
- Copyright (C) 2002-2005 RealVNC Ltd.
- See http://www.realvnc.com for information on VNC.
- Tue Jun 10 08:46:25 2014
- CConn: connected to host 127.0.0.1 port 5903
- CConnection: Server supports RFB protocol version 3.8
- CConnection: Using RFB protocol version 3.8
- TXImage: Using default colormap and visual, TrueColor, depth 24.
- CConn: Using pixel format depth 6 (8bpp) rgb222
- CConn: Using ZRLE encoding
- CConn: Throughput 20035 kbit/s - changing to hextile encoding
- CConn: Throughput 20035 kbit/s - changing to full colour
- CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
- CConn: Using hextile encoding
- CConn: Throughput 20000 kbit/s - changing to raw encoding
- CConn: Using raw encoding
复制代码 |
|