Questions tagged as 'ssh'

1
answer

Remove old key from known_hosts (Warning: Possible DNS Spoofing detected)

When accessing via command line in Linux / MacOS, a similar error as the following may appear @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
asked by 24.02.2014 / 04:01
1
answer

Error Expected SSH_FXP_VERSION when connecting via php with phpseclib

When connecting to some devices, I'm getting this message:    Expected SSH_FXP_VERSION and the command does not execute. I'm using php with phpseclib .     
asked by 27.12.2013 / 19:30
1
answer

Mysql workbench tcp / ip over ssh vagrant

I am trying to create a java environment in vagrant, I installed mysql and I am not able to connect to mysql from my vm by my workbench on the host. This key I am using is exactly the same one I use in putty via ssh and that's right. I also used...
asked by 18.09.2017 / 21:46
0
answers

Deploy laravel 5.2 FTP

I published my first laravel project via FTP, to understand how the structure works inside a server. I uploaded everything inside the folder www and created a .htaccess in the root to reference the public folder of laravel, so far everything...
asked by 13.07.2016 / 21:54
0
answers

SSH problem in Windows Server 2003 [closed]

I have a file server and it needs to be accessed from outside my network via SFTP using SSH. The server runs Windows Server 2003 R2 and I installed openSSH as an SSH server, and I have already set up all user settings and the like. So, that's ok...
asked by 25.06.2015 / 13:11
1
answer

linux command SSH

Good afternoon, I'm new to linux commands, I need to view more than one file, I can currently use it to view 1 file: tail -f pasta/arquivo I would like to be viewing 2 or more files, something like: tail -f pasta/arquivo1 pasta/arquivo...
asked by 22.10.2015 / 17:52
1
answer

How to check if a connection is "sleeping" in php?

I have the following script: $fp = @fsockopen($IPAddress, $newport, $errno, $errstr, (float) 0.5); if ($fp) { echo("Conectado\n"); } else { echo("Desconectado\n"); } This script checks if a particular port is open, works fine. I...
asked by 06.09.2018 / 20:04
1
answer

Shell command

I need to copy the last file created in a directory to another via ssh . I am using the following command: ssh -oStrictHostKeyChecking=no user@IP "cd /home/user/backup_database/hour/; cp "'ls -1trap | grep -v '/$' | tail -n 1'" ~/"...
asked by 19.01.2018 / 15:14
1
answer

Opencart Should I ignore the checked.cache file in GIT?

I'm having a bit of stress with the opencart checked.cache file that every update asks for to do an add / commit / push and every time it has to be done I have headaches with conflicts and so on. Should I add this file to my .gitignore ?...
asked by 06.04.2015 / 15:27
1
answer

Send files via rsync defining user and group

I have the following script that sends files from a local folder to a remote server: rsync -Crav --exclude 'storage' --exclude 'error_log' --exclude 'database.php' --progress --partial --rsh='ssh -p1150' /home/user/Projects/project-local/* ro...
asked by 14.07.2014 / 03:30