无法将"ssh"识别为内部或外部命令 [英] 'ssh' is not recognized as an internal or external command

查看:2335
本文介绍了无法将"ssh"识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用命令行将应用程序部署到Fortrabbit服务器中.我正在使用Windows.这是我尝试过的:

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.

我已经观看了这部Laracast视频,其效果与Jeffrey相同,但它没有工作...

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

有人可以帮忙吗?

推荐答案

实际上,这里有两个问题:首先是您没有安装ssh,其次是您不知道如何部署

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

您的计算机上似乎未安装ssh.

It seems that ssh is not installed on your computer.

您可以从此处安装openssh: http://openssh.en.softonic.com/download

You can install openssh from here : http://openssh.en.softonic.com/download

比起您必须生成ssh密钥.这里有一个很好的教程:

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

https://help.github.com/articles/generating- ssh-keys#platform-windows

要进行部署,您只需要通过git推送代码即可.像这样:

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

git push fort master

如果您的权限被拒绝,请确保已将public_key放在git选项卡的仪表板中.

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

ssh命令使您可以访问远程节点.您应该已经通过电子邮件收到了密码,并且现在已经安装了ssh,在尝试连接时应该要求您输入密码.只需输入该密码即可.如果要使用私钥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

这篇关于无法将"ssh"识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆