Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
大家最近在玩什么?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Fri Jan 28, 2005 3:40 am    Post subject: 大家最近在玩什么? Reply with quote

我在玩:

1、不用密码就可以认证的ssh

Code:
# ssh-keygen -t dsa


连打几个回车会在~/.ssh/生成id_dsa和id_dsa.pub文件。

把那个id_dsa.pub文件复制到你想连接的SSH服务器上,并打入

Code:
# cat id_dsa.pub >> ~/.ssh/authorized_keys


没有authorized_keys的可以touch一个出来。。。(连touch都不知道是什么的还是不要玩这个了,很危险的,回火星去吧。)

2、FUSE 用户空间文件系统

Code:
# emerge sshfs-fuse


重启一下电脑,然后看看/usr/doc/下sshfs-fuse的帮助文档就知道干吗的了。。。特别酷!(如果上面那个不会玩,这个也别玩了。。。火星不收留你么?)

注意:玩的时候注意相关文件的权限。。特别那个公共钥匙。。。别让坏人COPY走了。
_________________
Linux simply sucks.

---- a Linux user (1996 - 2006)
Back to top
View user's profile Send private message
Acky
n00b
n00b


Joined: 28 Jan 2005
Posts: 2

PostPosted: Fri Jan 28, 2005 5:55 am    Post subject: Reply with quote

哈,刚好知道touch是干吗用的
Back to top
View user's profile Send private message
sesame
n00b
n00b


Joined: 26 May 2005
Posts: 1

PostPosted: Thu May 26, 2005 12:11 pm    Post subject: Reply with quote

回复:大家最近在玩些什么?

我最近在浏览许多论坛
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 245
Location: Hangzhou, China

PostPosted: Thu May 26, 2005 12:30 pm    Post subject: Reply with quote

我要加班,好忙啊,乱七八糟的事,烦死我也!
Back to top
View user's profile Send private message
millermiller
n00b
n00b


Joined: 26 May 2005
Posts: 52

PostPosted: Thu May 26, 2005 12:31 pm    Post subject: Re: 大家最近在玩什么? Reply with quote

wangxiaohu wrote:
注意:玩的时候注意相关文件的权限。。特别那个公共钥匙。。。别让坏人COPY走了。

有点儿错误吧,应该是私人密匙。就是那个id_dsa或id_rsa文件。顺便说一句别忘了chmod 600 $HOME/.ssh/*.

windows下可以用putty. puttygen可以用来产生密匙。但是puttygen产生的私人密匙和ssh-keygen产生的不能直接互用,要用puttygen转化一下。

这两天在捣鼓gentoo以后要向各位请教了。
_________________
Free as in Freedom
Back to top
View user's profile Send private message
liuspider
Apprentice
Apprentice


Joined: 03 Feb 2003
Posts: 237

PostPosted: Thu May 26, 2005 1:09 pm    Post subject: Reply with quote

据我所知,如果有任何权限问题的话,就是你的 ~/.ssh 和下面的那些文件,你都不能成功的认证的:试试把你的 private key 改个权限
_________________
BLOG: http://liucougar.scim-im.org
Back to top
View user's profile Send private message
panlm
n00b
n00b


Joined: 29 Jan 2005
Posts: 45

PostPosted: Fri May 27, 2005 12:56 am    Post subject: Reply with quote

fuse 是不是类似与tmpfs??
_________________
[img]http://setistat.kanuuli.de/userstats.php?l=1&id=113&lng=en[/img]
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Fri May 27, 2005 12:57 am    Post subject: Reply with quote

最近在學習C編程。 :)

外面有哪個傻子和我一樣嗎?:lol:
_________________
AKar
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Fri May 27, 2005 5:53 pm    Post subject: Re: 大家最近在玩什么? Reply with quote

wangxiaohu wrote:

Code:
# cat id_dsa.pub >> ~/.ssh/authorized_keys


没有authorized_keys的可以touch一个出来。。。(连touch都不知道是什么的还是不要玩这个了,很危险的,回火星去吧。)
注意:玩的时候注意相关文件的权限。。特别那个公共钥匙。。。别让坏人COPY走了。


>> 追加的时候如果没有该文件不必touch,可以直接生成,至少bash里是这样

是private key要保密,还有passphrase不能为空,可以通过ssh-add让ssh-agent记住你的passphrase
public key是要公开的,就是带.pub的那个
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Sat May 28, 2005 7:05 am    Post subject: Reply with quote

最近为了一个项目, 终于把 SSL/TLS 的原理彻底弄懂 ;)
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum