mac os ssh -X
来源:互联网 发布:如何申请域名 编辑:程序博客网 时间:2024/05/21 09:50
Apple OS X: Install X Window System (XQuartz) For SSH X11 Forwarding
How do I fix this problem on OS X and enable X11 forwarding with ssh command ? How do I install XQuartz (X11.app) server on Apple OS X Mountain Lion or Mavericks?
The latest version of Apple OS X Mountain Lion and Mavericks no longer ships with X11.app i.e. XQuartz server. You need to download and install the server before using ssh with X11 forwarding.
Step #1: Download and Install XQuartz server
Visit this page and download XQuarz server . Once downloaded the XQuarz package, install the server by double clicking the package icon in your Downloads folder. Please follow the instructions on-screen to complete the installations.
Step #2: ssh X11 forwarding syntax
A tunneling protocol is a network protocol which encapsulates a payload protocol, acting as a payload protocol. Reasons to tunnel include carrying a payload over an incompatible delivery network, or to provide a secure path through an untrusted network. SSH is frequently used to tunnel insecure traffic over the Internet in a secure way. Simply type the following command to use X over ssh:
ssh -X user@RemoteserverNameHerex-app-name-here &
ssh -X userName@Server-Ip-Address-Herex-window-app-name-here &
Examples
In this example, login to the Linux based nas01 server as a user called nixcraft: $ ssh -X nixcraft@nas01
OR $ ssh -X nas01
You will see XQuartz server in the Dock i.e. a new XQuartz icon sits at the bottom of side of your screen as follows:
Fig.01: X11.app ( XQuartz ) loaded at the Dock
$ app-name
$ /path/to/app-name
$ app-name &
In this example, I am running xeyes on remote server:
$ xeyes
Sample outputs:
Animated gif 01: X11 Forwarding on OS X v10.8+. This demo was tested on OS X 10.9 i.e. Mavericks and Linux remote server.
Edit your ~/.ssh/config file and append the following line and you wouldn't need pass the -X option to ssh command:
ForwardX11 yes
Finally, you can run ssh in the background after running a GUI app as follows:
ssh user@server -f -X app-Namessh nixcraft@nas01 -f -X gpassssh nixcraft@nas01 -f -X xeyes
- mac os ssh -X
- Mac OS X ssh设置
- 开启Mac OS X ssh 服务器
- Mac OS X, VPN, Privoxy, SSH, Proxy
- MAC OS X 系统设置SSH安全访问
- Using SSH and SFTP in Mac OS X
- Mac OS X 架设基于 SSH 的 Git 服务
- 使用Mac OS X终端SSH登录远程服务器
- 在Mac OS X上开启ssh服务
- 开启Mac OS X ssh 服务器 与使用
- Mac OS X - Miscellaneous
- Securing Mac OS X
- Mac OS X Programming
- mac os x自动关机
- Mac OS X 快捷键
- MAC OS X系统
- Mac OS X截图
- Mac OS X快捷键
- Android studio常见故障排除--ADB Connection Error
- 全栈工程师--通往架构师之路
- UVAlive 7361 Immortal Porpoises(矩阵快速幂)
- sql sum合计某一列的值
- IDEA 调试 Hadoop程序
- mac os ssh -X
- LSSVM(Least Squares SVM)与SVR(支持向量回归)
- 多态+this的一个小题
- 超级管理员 卸载应用 清除数据 锁屏
- DFS 模板
- 汉诺塔问题
- activeMQ实例在项目中的运用【项目实战系列】
- BackPropagation算法
- 互联网业务安全之通用安全风险模型