Jump to content
dil_bert

sftp> ls -la : command for login to a remote Server

Recommended Posts

dear phpfreaks



while i have some issues with the FileZilla-Cient i want to test a connection to the server on commandline
sftp> ls -la
with that command i should be able to test a connection to the server
 

Share this post


Link to post
Share on other sites

dear Barand,


Well -  since i have issues with establishing the connection with

a. filezilla
b. commandline

which other client can be user for establishing a connection ? Are there some alternatives to Filezilla ?
 

	`sftp -oPort=625 vhost@www2.myserver.org > ls -la`


	[/CODE]

	with that command i should be able to test a connection to the server

	well i cannot log with Filezilla - but the keys seem to fit says the serveradmin which looks after the server and the backend


	[CODE]`sftp -oPort=625 vhost@www2.myserver.org > ls -la`

	[/CODE]

	see the login attempt
	[CODE]


	[martin@martin-pc ~]$ sftp -oPort=625 vhost@www2.myserver.org > ls -la

	The authenticity of host '[www2.myserver.org]:625 ([122.33.23.132]:625)' can't be established.

	ECDSA key fingerprint is SHA256:QnvM/fbCDI6OnGsssssdddvXmIl9wauxh8XM5dcdddfr44Q.

	Are you sure you want to continue connecting (yes/no)? y

	Please type 'yes' or 'no': yes

	Warning: Permanently added '[www2.myserver.org]:625,[122.33.23.132]:625' (ECDSA) to the list of known hosts.

	vhost@www2.myserver.org: Permission denied (publickey).

	Connection closed

	Connection closed.  

	[martin@martin-pc ~]$

	[/CODE]


	regarding the establishing of an SSH -  based connection:

	cf;: the login with SSH: https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server


	You will connect the the remote system and your prompt will change to an SFTP prompt. if you are working on a custom SSH port (not the default port 22), then you can open an SFTP session as follows:

	sftp -oPort=custom_port sammy@your_server_ip_or_remote_hostname

	note: i work in a custom port


	**question:** which other client can be user for establishing a connection ? Are there some alternatives to Filezilla ?
Edited by dil_bert

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.