bash不识别命令 ssh,无法将“ ssh”识别为内部或外部命令

I have been trying to deploy my app into the Fortrabbit servers using the command line. I'm using windows. Here is what I tried :

C:\projects\riwaya>git remote add fort git@git2.eu1.frbit.com:riwaya.git

C:\projects\riwaya>git remote fort

C:\projects\riwaya>ssh u-riwaya@ssh2.eu1.frbit.com

'ssh' is not recognized as an internal or external command, operable program or batch file.

I have watched This Laracast Video and did the same as Jeffrey but it doesn't work ...

Can somebody help ?

解决方案

Actually you have 2 problems here: First is that you don't have ssh installed, second is that you don't know how to deploy

Install SSH

It seems that ssh is not installed on your computer.

Generate your key

Than you will have to geneate your ssh-key. There's a good tutorial about this here:

Deploy

To deploy, you just have to push your code over git. Something like this:

git push fort master

If you get permission denied, be sure that you have put your public_key in the dashboard in the git tab.

SSH

The ssh command gives you access to your remote node. You should have received a password by email and now that you have ssh installed, you should be asked for a password when trying to connect. just input that password. If you want to use your private ssh key to connect to your server rather then typing that password, you can follow this : http://fortrabbit.com/docs/how-to/ssh-sftp/enable-public-key-authentication

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值