37
SSH Christophe [email protected] NJU 2007-11-16

Application of SSH

Embed Size (px)

DESCRIPTION

A presentation on the application of SSH.

Citation preview

Page 1: Application of SSH

SSH的的的应应应用用用

[email protected]

NJU

2007-11-16

Page 2: Application of SSH

Contents

1 什么是

2 和 d的配置

3 S的应用

Page 3: Application of SSH

Contents

1 什么是

2 和 d的配置

3 S的应用

Page 4: Application of SSH

E Intro.

什么是

R, telnet, ?

R: Remote SHellTelnet: 远程交互: Secure SHell,代替 + rlogin + + telnet...S and OpenSSH

Page 5: Application of SSH

E Intro.

什么是

R, telnet, ?

R: Remote SHellTelnet: 远程交互: Secure SHell,代替 + rlogin + + telnet...S and OpenSSH

Page 6: Application of SSH

E Intro.

什么是

R, telnet, ?

R: Remote SHellTelnet: 远程交互: Secure SHell,代替 + rlogin + + telnet...S and OpenSSH

Page 7: Application of SSH

E Intro.

什么是

R, telnet, ?

R: Remote SHellTelnet: 远程交互: Secure SHell,代替 + rlogin + + telnet...S and OpenSSH

Page 8: Application of SSH

E Intro.

什么是

R, telnet, ?

R: Remote SHellTelnet: 远程交互: Secure SHell,代替 + rlogin + + telnet...S and OpenSSH

Page 9: Application of SSH

E Intro.

什么是

Components

一个安全、强大、完备的工具集

, d, , sftp, -keygen, . . .

Page 10: Application of SSH

E Intro.

什么是

的用途

获得远程 shell在远程主机运行程序(转发 X流量)作为 , telnet, r* 的安全通道建立

Page 11: Application of SSH

E Intro.

什么是

的用途

获得远程 shell在远程主机运行程序(转发 X流量)作为 , telnet, r* 的安全通道建立

Page 12: Application of SSH

E Intro.

什么是

的用途

获得远程 shell在远程主机运行程序(转发 X流量)作为 , telnet, r* 的安全通道建立

Page 13: Application of SSH

E Intro.

什么是

的用途

获得远程 shell在远程主机运行程序(转发 X流量)作为 , telnet, r* 的安全通道建立

Page 14: Application of SSH

Contents

1 什么是

2 和 d的配置

3 S的应用

Page 15: Application of SSH

E Intro.

和 d的配置

配置文件的位置

/etc/ssh/ssh config

∼/.ssh/config

d

/etc/ssh/sshd config

X11Forwarding yes

Page 16: Application of SSH

E Intro.

和 d的配置

配置文件的位置

/etc/ssh/ssh config

∼/.ssh/config

d

/etc/ssh/sshd config

X11Forwarding yes

Page 17: Application of SSH

E Intro.

和 d的配置

配置文件的位置

/etc/ssh/ssh config

∼/.ssh/config

d

/etc/ssh/sshd config

X11Forwarding yes

Page 18: Application of SSH

E Intro.

和 d的配置

配置文件的位置

/etc/ssh/ssh config

∼/.ssh/config

d

/etc/ssh/sshd config

X11Forwarding yes

Page 19: Application of SSH

Contents

1 什么是

2 和 d的配置

3 S的应用

Page 20: Application of SSH

E Intro.

S的应用

远程 shell

ssh username@host或

ssh -l username host

Page 21: Application of SSH

E Intro.

S的应用

运行远程程序

ssh username@host command

ssh username@host screen -d -m command

Page 22: Application of SSH

E Intro.

S的应用

运行远程程序

ssh username@host command

ssh username@host screen -d -m command

Page 23: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 24: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 25: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 26: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 27: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 28: Application of SSH

E Intro.

S的应用

安全通道

One way1 ssh -L localport:host:remoteport username@middler

2 使用各种程序连接 localhost:localport

Or another1 In sshd config: GatewayPorts yes2 ssh -R serverport:host:remoteport username@server,host and remoteport are from localhost point of view.

3 使用各种程序连接 server:serverport

Page 29: Application of SSH

E Intro.

S的应用

建立

V: Virtual Private Network,在应用层提供传输层的功能。

简单地 : + pppd:

前提:远程主机上的 root/sudo权限sudo pppd nodetach

<localIP>:<remoteIP> pty "ssh -l

<username> <remoteMachine> sudo

pppd notty"

Page 30: Application of SSH

E Intro.

S的应用

建立

V: Virtual Private Network,在应用层提供传输层的功能。

简单地 : + pppd:

前提:远程主机上的 root/sudo权限sudo pppd nodetach

<localIP>:<remoteIP> pty "ssh -l

<username> <remoteMachine> sudo

pppd notty"

Page 31: Application of SSH

E Intro.

S的应用

建立

V: Virtual Private Network,在应用层提供传输层的功能。

简单地 : + pppd:

前提:远程主机上的 root/sudo权限sudo pppd nodetach

<localIP>:<remoteIP> pty "ssh -l

<username> <remoteMachine> sudo

pppd notty"

Page 32: Application of SSH

E Intro.

S的应用

建立

V: Virtual Private Network,在应用层提供传输层的功能。

简单地 : + pppd:

前提:远程主机上的 root/sudo权限sudo pppd nodetach

<localIP>:<remoteIP> pty "ssh -l

<username> <remoteMachine> sudo

pppd notty"

Page 33: Application of SSH

E Intro.

S的应用

S启动远程图形界面

ssh -X username@host

前提:X11Forwarding,本地的 X Server原理:利用 通道转发 X流量

演示放在最后

Page 34: Application of SSH

E Intro.

S的应用

S启动远程图形界面

ssh -X username@host

前提:X11Forwarding,本地的 X Server原理:利用 通道转发 X流量

演示放在最后

Page 35: Application of SSH

E Intro.

S的应用

S启动远程图形界面

ssh -X username@host

前提:X11Forwarding,本地的 X Server原理:利用 通道转发 X流量

演示放在最后

Page 36: Application of SSH

E Intro.

S的应用

S启动远程图形界面

ssh -X username@host

前提:X11Forwarding,本地的 X Server原理:利用 通道转发 X流量

演示放在最后

Page 37: Application of SSH

E Intro.

S的应用

S启动远程图形界面

ssh -X username@host

前提:X11Forwarding,本地的 X Server原理:利用 通道转发 X流量

演示放在最后