468
Examples
# Change the name of a file on the SFTP server from
temp1.c
to
temp2.c
.
sftp> dir
aa.pub temp1.c
sftp> rename temp1.c temp2.c
sftp> dir
aa.pub temp2.c
rmdir
Use
rmdir
to delete a directory from the SFTP server.
Syntax
rmdir
remote-path
Views
SFTP client view
Predefined user roles
network-admin
mdc-admin
Parameters
remote-path
: Specifies a directory.
Examples
# Delete subdirectory
temp1
under the current directory on the SFTP server.
sftp> rmdir temp1
scp
Use
scp
to establish a connection to an IPv4 SCP server and transfer files with the server.
Syntax
In non-FIPS mode:
scp
server
[
port-number
] [
vpn-instance
vpn-instance-name
] {
put
|
get
}
source-file-name
[
destination-file-name
] [
identity-key
{
dsa
|
ecdsa-sha2-nistp256
|
ecdsa-sha2-nistp384
|
rsa
|
{
x509v3-ecdsa-sha2-nistp256
|
x509v3-ecdsa-sha2-nistp384
}
pki-domain
domain-name
} |
prefer-compress
zlib
|
prefer-ctos-cipher
{
3des-cbc
|
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
|
des-cbc
} |
prefer-ctos-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} |
prefer-kex
{
dh-group-exchange-sha1
|
dh-group1-sha1
|
dh-group14-sha1
|
ecdh-sha2-nistp256
|
ecdh-sha2-nistp384
} |
prefer-stoc-cipher
{
3des-cbc
|
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
|
des-cbc
} |
prefer-stoc-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
|
sha2-256
|
sha2-512
} ] * [
{
public-key
keyname
|
server-pki-domain
domain-name
} |
source
{
interface
interface-type interface-number
|
ip
ip-address
} ] * [
user
username
[
password
password
] ]
In FIPS mode:
scp
server
[
port-number
] [
vpn-instance
vpn-instance-name
] {
put
|
get
}
source-file-name
[
destination-file-name
] [
identity-key
{
ecdsa-sha2-nistp256
|
ecdsa-sha2-nistp384
|
rsa
|
{
x509v3-ecdsa-sha2-nistp256
|
x509v3-ecdsa-sha2-nistp384
}
pki-domain
domain-name
} |
prefer-compress
zlib
|
prefer-ctos-cipher
{
aes128-cbc
|
aes128-ctr
|
aes128-gcm
|
aes192-ctr
|
aes256-cbc
|
aes256-ctr
|
aes256-gcm
} |
prefer-ctos-hmac
{
sha1
|
sha1-96
|
sha2-256
|
Содержание FlexNetwork 7500 Series
Страница 350: ...335 Related commands display port security port security enable ...
Страница 379: ...364 Sysname system view Sysname keychain abc mode absolute Sysname keychain abc tcp kind 252 ...
Страница 519: ...504 Related commands display ssh2 algorithm ssh2 algorithm cipher ssh2 algorithm key exchange ssh2 algorithm mac ...