I tried to write a bash script for process some files inside a ssh server. I can login but I can't navigate through folders. I know I'm missing something important but I don't know what.
#!/bin/bash
input="/home/homename/password.txt"
while IFS= read -r line
do
sshpass -p "$line" ssh -tt user@server
done < "$input"
cd ..
cd ..
cd /folder/folder
Thank you all.