Using SSH and SFTP in Mac OS X

SSH and SFTP are command line applications available from the Terminal (located at /Applications/Utilities/Terminal).

 

SSH

SSH client is a program for logging into a remote machine and for executing commands on a remote machine.

 

Connecting

To connect using ssh type at the terminal:

ssh username@host_server

 

Username is your network account username and host_server is the remote server to which you're connecting.

 

SFTP

SFTP is an interactive file transfer program, similar to ftp, which performs all operations over an encrypted ssh transport.

 

Connecting

To connect using sftp type at the terminal:

sftp username@host_server

 

Username is your network account username and host_server is the remote server to which you're connecting.

 

Commands

The commands available in SFTP are:

CommandDescription
pwd
Print working directory of remote host
lpwd
Print working directory of local client
cd
Change directory on the remote host
lcd
Change directory on the local client
ls
List director on the remote host
lls
List directory on the local client
mkdir
Make directory on remote host
lmkdir
Make directory on local client
get
Receive file from remote host to local client
put
Send file from local client to remote host
help
Display help text

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值