我有几个SSH文件
LayoutInflater inflater = LayoutInflater.from(this.getActivity());
View profileView = inflater.inflate(R.layout.profile, null, false);
View listView = inflater.inflate(R.layout.listview, null, false);
// You should position profileView and listView in the right place here
yourFragmentsRootView.addView(profileView);
yourFragmentsRootView.addView(listView);
-rwxrwxrwx 1 test staff 94 Jun 5 20:26 login.sh
-r--------@ 1 test staff 1696 May 23 18:41 aws-linux-machine-yahoo.pem
看起来像这样:
login.sh
当我输入以下内容时,我得到:
# login.sh
ssh -i aws-linux-machine-yahoo.pem ec2-user@xx.xx.xx.xx
但是,如果我直接在终端中输入$ ./login.sh
: nodename nor servname provided, or not knownx.xx.xx
命令,
ssh
成功。