Linux通过SSH连接另一个Linux

时间:2015-07-15 06:50:46

标签: linux ssh

我的笔记本电脑的操作系统是Linux,我想连接我的远程服务器,它的操作系统是Linux CentOS。您知道,在Windows上,您可以使用Putty,XShell等连接远程Linux机器。我想知道是否有一些像Putty或Xshell这样可以连接远程Linux Server的软件。我知道在Linux上,你可以使用ftp来连接远程Linux服务器的文件系统,但我想使用远程Linux服务器&# 39; s终端运行一些程序。

3 个答案:

答案 0 :(得分:2)

ssh user@remoteserver

remoteserver :这是您需要连接的主机名或IP地址。

用户:用于连接该系统的用户名。

成功连接后,您将看到提示以进一步指导。

答案 1 :(得分:1)

在Linux中你有SSH(通常是openssh包或ssh-server或ssh)命令<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="@dimen/margin_default" android:background="@color/ThemeColor" tools:context=".AuthActivityFragment" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:layout_marginTop="32dp" android:layout_marginBottom="32dp" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@mipmap/logo_large" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:background="@mipmap/login_form_bg" android:padding="20dp" android:gravity="center" android:layout_margin="10dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/heading_login" android:layout_gravity="center" android:textColor="@color/black_shade" style="@android:style/TextAppearance.DeviceDefault.Medium" android:textStyle="bold" /> <EditText android:hint="@string/hint_login_username" android:id="@+id/etEmail" android:textColorHint="@color/light_grey_hint" android:singleLine="true" android:inputType="textEmailAddress" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="48dp" android:layout_margin="@dimen/margin_default" android:background="@drawable/border_fields" style="@android:style/TextAppearance.DeviceDefault.Medium" android:paddingBottom="@dimen/margin_default" android:paddingTop="@dimen/margin_default" android:paddingLeft="@dimen/large_margins" android:paddingRight="@dimen/large_margins" /> <EditText android:hint="@string/hint_login_password" android:id="@+id/etPassword" android:textColorHint="@color/light_grey_hint" android:singleLine="true" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="48dp" android:background="@drawable/border_fields" style="@android:style/TextAppearance.DeviceDefault.Medium" android:paddingBottom="@dimen/margin_default" android:paddingTop="@dimen/margin_default" android:paddingLeft="@dimen/large_margins" android:paddingRight="@dimen/large_margins" android:layout_margin="@dimen/margin_default" android:inputType="textPassword" android:ems="10" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center" android:padding="@dimen/margin_default" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_small_cross" android:layout_gravity="center_vertical" android:padding="@dimen/large_margins" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_small_cross" android:layout_gravity="center_vertical" android:padding="@dimen/large_margins" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnLogin" android:background="@mipmap/login" android:layout_marginRight="@dimen/margin_default" android:layout_gravity="center_vertical" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_small_cross" android:padding="@dimen/large_margins" android:layout_gravity="center_vertical" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_small_cross" android:padding="@dimen/large_margins" android:layout_gravity="center_vertical" /> </LinearLayout> </LinearLayout> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnSignUp" android:background="@mipmap/signup" android:layout_marginRight="@dimen/margin_default" android:layout_gravity="center_horizontal" /> </LinearLayout> </ScrollView>

答案 2 :(得分:0)

令人惊讶的是,您需要的工具称为ssh